Commit 0c582f42 authored by Andreas Jung's avatar Andreas Jung

Collector #2316: introduced env. var ZSYSLOG_FACILITY to

override the default syslog facility "user"
parent c717f22c
......@@ -11,6 +11,9 @@ Zope Changes
- Made the meta-type in the upper-left corner of ZClass instances'
management interface into a link to the ZClass definition.
- Collector #2316: introduced new environment variable ZSYSLOG_FACILITY
to override the default syslog facility 'user'
Bugs fixed
- Corrections to the code that adds interface information to the
......
......@@ -604,6 +604,10 @@ try:
lg = logger.file_logger('-') # log to stdout
elif os.environ.has_key('ZSYSLOG'):
lg = logger.syslog_logger(os.environ['ZSYSLOG'])
if os.environ.has_key("ZSYSLOG_FACILITY"):
lg = logger.syslog_logger(os.environ['ZSYSLOG'],facility=os.environ['ZSYSLOG_FACILITY'])
else:
lg = logger.syslog_logger(os.environ['ZSYSLOG'])
elif os.environ.has_key('ZSYSLOG_SERVER'):
(addr, port) = string.split(os.environ['ZSYSLOG_SERVER'], ':')
lg = logger.syslog_logger((addr, int(port)))
......
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