[Zope-dev] zLOG is dead

Fred Drake fred at zope.com
Tue Apr 13 15:53:55 EDT 2004


============
zLOG is dead
============

The zLOG package used for logging throughout ZODB, ZEO, and Zope 2 has
been declared obsolete.  All logging for Zope products will use the
logging package from Python's standard library.

The zLOG package still exists in Zope 2 and the separate package for
ZODB, but it is now an API shim (or "façade") over the logging
package.  It is expected to wither away to nothing at some point.

Why should you care?
--------------------

This means that the environment variables EVENT_LOG_FILE,
EVENT_LOG_SEVERITY, STUPID_LOG_FILE, STUPID_LOG_SEVERITY, and ZSYSLOG
are no longer honored for Zope 2.8, ZODB, or ZEO.  Zope 2 reads
logging configuring from the zope.conf configuration file, and the
test.py script for developers reads a log.ini file using the obnoxious
configuration syntax provided by the logging package itself.

If you use the ZODB distribution but not the rest of Zope, you
probably want to start changing any of your code that uses zLOG to use
the logging package.  ZODB and ZEO will be changed to use the logging
package directly as well to avoid dependence on the API shim.

How can you help?
-----------------

If you have some time to contribute to Zope development, the removal
of zLOG calls from the ZODB and ZEO packages would be a welcome
contribution.  I've converted Signals/Signals.py and
Zope/Startup/__init__.py, and some modules of ZODB and ZEO already use
the logging package directly; these can serve as examples.


  -Fred

-- 
Fred L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation




More information about the Zope-Dev mailing list