Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
61f5d021
Commit
61f5d021
authored
Dec 31, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move more of the handling of log cycling into zLOG, allowing
applications to know less about how this is implemented
parent
4203f7df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/zLOG/datatypes.py
src/zLOG/datatypes.py
+15
-0
No files found.
src/zLOG/datatypes.py
View file @
61f5d021
...
@@ -16,6 +16,9 @@
...
@@ -16,6 +16,9 @@
import
sys
import
sys
import
zLOG
from
zLOG
import
EventLogger
from
zLOG.factory
import
Factory
from
zLOG.factory
import
Factory
# log-related datatypes
# log-related datatypes
...
@@ -239,6 +242,18 @@ class EventLogFactory(Factory):
...
@@ -239,6 +242,18 @@ class EventLogFactory(Factory):
lowest
=
factory
.
getLevel
()
lowest
=
factory
.
getLevel
()
return
lowest
return
lowest
def
initialize
(
self
):
logger
=
self
()
for
handler
in
logger
.
handlers
:
if
hasattr
(
handler
,
"reopen"
):
handler
.
reopen
()
EventLogger
.
event_logger
.
logger
=
self
()
def
startup
(
self
):
zLOG
.
set_initializer
(
self
.
initialize
)
zLOG
.
initialize
()
def
importable_name
(
name
):
def
importable_name
(
name
):
try
:
try
:
components
=
name
.
split
(
'.'
)
components
=
name
.
split
(
'.'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment