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
a0ec17ab
Commit
a0ec17ab
authored
Jan 08, 2006
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deprecated zLOG
parent
82f07eeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
doc/CHANGES.txt
doc/CHANGES.txt
+7
-0
lib/python/zLOG/__init__.py
lib/python/zLOG/__init__.py
+9
-0
No files found.
doc/CHANGES.txt
View file @
a0ec17ab
...
...
@@ -22,6 +22,13 @@ Zope Changes
- Collector #1233: port ZOPE_CONFIG patch from Zope 2.7 to Zope 2.8
after 2.9.0
Bugs fixed
- officially deprecated the zLOG module (to be removed in Zope 2.11).
Use the logging module of Python instead.
Zope 2.9.0 (2006/01/09)
Bugs fixed
...
...
lib/python/zLOG/__init__.py
View file @
a0ec17ab
...
...
@@ -77,6 +77,8 @@ back-end; configuration of the logging module must be handled
somewhere else.
"""
import
warnings
from
EventLogger
import
log_write
,
log_time
,
severity_string
from
traceback
import
format_exception
...
...
@@ -131,6 +133,13 @@ def LOG(subsystem, severity, summary, detail='', error=None, reraise=None):
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
)
if
reraise
and
error
:
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