Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Zope
Commits
084c486f
Commit
084c486f
authored
Feb 04, 2007
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Un-deprecate zLOG.
parent
f5ad1fe6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/zLOG/__init__.py
lib/python/zLOG/__init__.py
+0
-8
No files found.
doc/CHANGES.txt
View file @
084c486f
...
@@ -8,6 +8,9 @@ Zope Changes
...
@@ -8,6 +8,9 @@ Zope Changes
Bugs fixed
Bugs fixed
- Undeprectated 'zLOG' package, which is going to remain a
backward-compatibility shim for the Python logger.
- Collector #2263: 'field2ulines' did not convert empty string
- Collector #2263: 'field2ulines' did not convert empty string
correctly.
correctly.
...
...
lib/python/zLOG/__init__.py
View file @
084c486f
...
@@ -78,7 +78,6 @@ somewhere else.
...
@@ -78,7 +78,6 @@ somewhere else.
"""
"""
import
warnings
from
EventLogger
import
log_write
,
log_time
,
severity_string
from
EventLogger
import
log_write
,
log_time
,
severity_string
from
traceback
import
format_exception
from
traceback
import
format_exception
...
@@ -133,13 +132,6 @@ def LOG(subsystem, severity, summary, detail='', error=None, reraise=None):
...
@@ -133,13 +132,6 @@ def LOG(subsystem, severity, summary, detail='', error=None, reraise=None):
error is reraised.
error is reraised.
"""
"""
warnings
.
warn
(
'The zLOG package is deprecated and will be removed in '
'Zope 2.11. Use the Python logging module instead.'
,
DeprecationWarning
,
stacklevel
=
2
)
log_write
(
subsystem
,
severity
,
summary
,
detail
,
error
)
log_write
(
subsystem
,
severity
,
summary
,
detail
,
error
)
if
reraise
and
error
:
if
reraise
and
error
:
raise
error
[
0
],
error
[
1
],
error
[
2
]
raise
error
[
0
],
error
[
1
],
error
[
2
]
...
...
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