[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - __init__.py:1.13 zopeschema.xml:1.24

Fred L. Drake, Jr. fred at zope.com
Mon Jan 5 12:04:42 EST 2004


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

Modified Files:
	__init__.py zopeschema.xml 
Log Message:
update zLOG configuration component to make use of the ZConfig support for
the logging package; this avoids lots of code duplication


=== Zope/lib/python/Zope/Startup/__init__.py 1.12 => 1.13 ===
--- Zope/lib/python/Zope/Startup/__init__.py:1.12	Mon Jan  5 11:32:26 2004
+++ Zope/lib/python/Zope/Startup/__init__.py	Mon Jan  5 12:04:11 2004
@@ -103,7 +103,7 @@
         # if we're not in debug mode).
         import zLOG
 
-        from zLOG.LogHandlers import StartupHandler
+        from ZConfig.components.logger.loghandler import StartupHandler
 
         if self.cfg.eventlog is not None:
             # get the lowest handler level.  This is the effective level


=== Zope/lib/python/Zope/Startup/zopeschema.xml 1.23 => 1.24 ===
--- Zope/lib/python/Zope/Startup/zopeschema.xml:1.23	Thu Nov  6 03:01:45 2003
+++ Zope/lib/python/Zope/Startup/zopeschema.xml	Mon Jan  5 12:04:11 2004
@@ -16,8 +16,12 @@
       logging; event logging is handled by the zLOG package, which
       provides the loghandler type used here.
     </description>
-    <key name="level" datatype="zLOG.datatypes.logging_level" default="info"/>
-    <multisection type="zLOG.loghandler" attribute="handlers" name="*"
+    <key name="level"
+         datatype="ZConfig.components.logger.datatypes.logging_level"
+         default="info"/>
+    <multisection name="*"
+                  type="ZConfig.logger.handler"
+                  attribute="handlers"
                   required="yes"/>
   </sectiontype>
 




More information about the Zope-Checkins mailing list