[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - __init__.py:1.15

Fred L. Drake, Jr. fred at zope.com
Fri Apr 9 17:22:27 EDT 2004


Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv28631/Zope/Startup

Modified Files:
	__init__.py 
Log Message:
Change the mapping from zLOG to the logging package:
- don't dump everything into the "event" logger;
  use the subsystem argument to zLOG.LOG to get a specific logger
- move some comments into docstrings


=== Zope/lib/python/Zope/Startup/__init__.py 1.14 => 1.15 ===
--- Zope/lib/python/Zope/Startup/__init__.py:1.14	Thu Jan 15 18:05:08 2004
+++ Zope/lib/python/Zope/Startup/__init__.py	Fri Apr  9 17:21:56 2004
@@ -80,7 +80,7 @@
         import zLOG
         # don't initialize the event logger from the environment
         zLOG._call_initialize = 0
-        self.event_logger = zLOG.EventLogger.EventLogger.logger
+        self.event_logger = logging.getLogger()
 
     def info(self, msg):
         import zLOG
@@ -111,6 +111,7 @@
         # set up our initial logging environment (log everything to stderr
         # if we're not in debug mode).
         import zLOG
+        import zLOG.EventLogger
 
         from ZConfig.components.logger.loghandler import StartupHandler
 




More information about the Zope-Checkins mailing list