Corrected/Enhanced Syslog Support
Brought to you by:
preisl
This patch corrects the following problem with
log4py's Syslog support:
* Log messages are now sent to syslog under the log
level that they were specified as. Previously, all
messages were sent as log level INFO.
This patch is to enhance the support of Syslog
Appending. The following enhancements are included:
* Added support for passing the logger options to
syslog, such as LOG_PID, LOG_NDELAY, etc.
* Configured the calls to syslog so they would be
identified as coming from the current script, rather
than the blanket "python" identity.
* Added "%i" to the pattern layout interpretation to
insert the current running user into the layout.
* Enabled the pattern layout to be applied to syslog
targets.
diff -u patch file. just copy this into the same directory in unix and execute the command "patch -p0 < patch_log4py"