[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - logger.xml:1.1.2.1 zopeschema.xml:1.1.2.4
Fred L. Drake, Jr.
fred@zope.com
Thu, 9 Jan 2003 15:19:04 -0500
Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv12102
Modified Files:
Tag: chrism-install-branch
zopeschema.xml
Added Files:
Tag: chrism-install-branch
logger.xml
Log Message:
Split the logger definitions to a separate resource.
=== Added File Zope/lib/python/Zope/Startup/logger.xml ===
<schema prefix="Zope.Startup.datatypes">
<abstracttype name="loghandler"/>
<sectiontype name="file_handler" datatype=".file_handler"
implements="loghandler">
<key name="file" required="yes"/>
<key name="format" default="------\n%(asctime)s %(message)s"
datatype=".log_format"/>
<key name="dateformat" default="%Y-%m-%dT%H:%M:%S"/>
<key name="level" default="info" datatype="logging-level"/>
</sectiontype>
<sectiontype name="syslog_handler" datatype=".syslog_handler"
implements="loghandler">
<key name="facility" default="user" datatype=".syslog_facility"/>
<key name="socket" datatype="existing-file"/>
<key name="port" default="514" datatype="port-number"/>
<key name="host" datatype="ipaddr-or-hostname"/>
<key name="format" default="%(message)s"
datatype=".log_format"/>
<key name="dateformat" default="%Y-%m-%dT%H:%M:%S"/>
<key name="level" default="info" datatype="logging-level"/>
</sectiontype>
<sectiontype name="nteventlog_handler" datatype=".nteventlog_handler"
implements="loghandler">
<key name="appname" default="Zope"/>
<key name="format" default="%(message)s"
datatype=".log_format"/>
<key name="dateformat" default="%Y-%m-%dT%H:%M:%S"/>
<key name="level" default="info" datatype="logging-level"/>
</sectiontype>
<sectiontype name="http_handler" datatype=".http_handler"
implements="loghandler">
<key name="url" default="localhost" datatype=".http_handler_url"/>
<key name="method" default="GET" datatype=".get_or_post"/>
<key name="format" default="%(asctime)s %(message)s"
datatype=".log_format"/>
<key name="dateformat" default="%Y-%m-%dT%H:%M:%S"/>
<key name="level" default="info" datatype="logging-level"/>
</sectiontype>
<sectiontype name="smtp_handler" datatype=".smtp_handler"
implements="loghandler">
<key name="fromaddr" required="yes"/>
<multikey name="toaddr" required="yes" attribute="toaddrs"/>
<key name="subject" default="Message from Zope"/>
<key name="host" default="localhost" datatype="inet-address"/>
<key name="format" default="%(asctime)s %(message)s"
datatype=".log_format"/>
<key name="dateformat" default="%Y-%m-%dT%H:%M:%S"/>
<key name="level" default="info" datatype="logging-level"/>
</sectiontype>
<sectiontype name="null_handler" datatype=".null_handler"
implements="loghandler"/>
<sectiontype name="custom_handler" datatype=".custom_handler"
implements="loghandler">
<key name="constructor" datatype="constructor" required="yes"/>
<key name="formatter" datatype="constructor"
default="logging.Formatter()"/>
<key name="level" default="info" datatype="logging-level"/>
</sectiontype>
<sectiontype name="logger" datatype=".logger">
<key name="level" datatype="logging-level" default="info"/>
<multisection type="handler" attribute="handlers" name="*"/>
</sectiontype>
</schema>
=== Zope/lib/python/Zope/Startup/zopeschema.xml 1.1.2.3 => 1.1.2.4 ===
--- Zope/lib/python/Zope/Startup/zopeschema.xml:1.1.2.3 Thu Jan 9 15:04:22 2003
+++ Zope/lib/python/Zope/Startup/zopeschema.xml Thu Jan 9 15:19:01 2003
@@ -2,76 +2,7 @@
<!-- type definitions -->
- <abstracttype name="loghandler"/>
-
- <sectiontype name="file_handler" datatype=".file_handler"
- implements="loghandler">
- <key name="file" required="yes"/>
- <key name="format" default="------\n%(asctime)s %(message)s"
- datatype=".log_format"/>
- <key name="dateformat" default="%Y-%m-%dT%H:%M:%S"/>
- <key name="level" default="info" datatype="logging-level"/>
- </sectiontype>
-
- <sectiontype name="syslog_handler" datatype=".syslog_handler"
- implements="loghandler">
- <key name="facility" default="user" datatype=".syslog_facility"/>
- <key name="socket" datatype="existing-file"/>
- <key name="port" default="514" datatype="port-number"/>
- <key name="host" datatype="ipaddr-or-hostname"/>
- <key name="format" default="%(message)s"
- datatype=".log_format"/>
- <key name="dateformat" default="%Y-%m-%dT%H:%M:%S"/>
- <key name="level" default="info" datatype="logging-level"/>
- </sectiontype>
-
- <sectiontype name="nteventlog_handler" datatype=".nteventlog_handler"
- implements="loghandler">
- <key name="appname" default="Zope"/>
- <key name="format" default="%(message)s"
- datatype=".log_format"/>
- <key name="dateformat" default="%Y-%m-%dT%H:%M:%S"/>
- <key name="level" default="info" datatype="logging-level"/>
- </sectiontype>
-
- <sectiontype name="http_handler" datatype=".http_handler"
- implements="loghandler">
- <key name="url" default="localhost" datatype=".http_handler_url"/>
- <key name="method" default="GET" datatype=".get_or_post"/>
- <key name="format" default="%(asctime)s %(message)s"
- datatype=".log_format"/>
- <key name="dateformat" default="%Y-%m-%dT%H:%M:%S"/>
- <key name="level" default="info" datatype="logging-level"/>
- </sectiontype>
-
- <sectiontype name="smtp_handler" datatype=".smtp_handler"
- implements="loghandler">
- <key name="fromaddr" required="yes"/>
- <multikey name="toaddr" required="yes" attribute="toaddrs"/>
- <key name="subject" default="Message from Zope"/>
- <key name="host" default="localhost" datatype="inet-address"/>
- <key name="format" default="%(asctime)s %(message)s"
- datatype=".log_format"/>
- <key name="dateformat" default="%Y-%m-%dT%H:%M:%S"/>
- <key name="level" default="info" datatype="logging-level"/>
- </sectiontype>
-
- <sectiontype name="null_handler" datatype=".null_handler"
- implements="loghandler"/>
-
- <sectiontype name="custom_handler" datatype=".custom_handler"
- implements="loghandler">
- <key name="constructor" datatype="constructor" required="yes"/>
- <key name="formatter" datatype="constructor"
- default="logging.Formatter()"/>
- <key name="level" default="info" datatype="logging-level"/>
- </sectiontype>
-
-
- <sectiontype name="logger" datatype=".logger">
- <key name="level" datatype="logging-level" default="info"/>
- <multisection type="handler" attribute="handlers" name="*"/>
- </sectiontype>
+ <import src="logger.xml"/>
<abstracttype name="server"/>