Commit a0ec17ab authored by Andreas Jung's avatar Andreas Jung

deprecated zLOG

parent 82f07eeb
......@@ -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
......
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment