From: <los...@us...> - 2006-12-13 23:02:47
|
Revision: 488 http://svn.sourceforge.net/fail2ban/?rev=488&view=rev Author: lostcontrol Date: 2006-12-13 15:02:46 -0800 (Wed, 13 Dec 2006) Log Message: ----------- - Use /dev/log for SYSLOG output. Thanks to Joerg Sommrey Modified Paths: -------------- trunk/CHANGELOG trunk/config/fail2ban.conf trunk/server/server.py Modified: trunk/CHANGELOG =================================================================== --- trunk/CHANGELOG 2006-12-11 22:18:41 UTC (rev 487) +++ trunk/CHANGELOG 2006-12-13 23:02:46 UTC (rev 488) @@ -10,6 +10,7 @@ ver. 0.7.6 (200?/??/??) - ??? ---------- - Added a "sleep 1" in redhat-initd. Thanks to Jim Wight +- Use /dev/log for SYSLOG output. Thanks to Joerg Sommrey ver. 0.7.5 (2006/12/07) - beta ---------- Modified: trunk/config/fail2ban.conf =================================================================== --- trunk/config/fail2ban.conf 2006-12-11 22:18:41 UTC (rev 487) +++ trunk/config/fail2ban.conf 2006-12-13 23:02:46 UTC (rev 488) @@ -18,8 +18,9 @@ loglevel = 3 # Option: logtarget -# Notes.: Set the log target. This could be a file, SYSLOG, STDERR. -# Values: STDERR SYSLOG file Default: /var/log/fail2ban.log +# Notes.: Set the log target. This could be a file, SYSLOG, STDERR or STDOUT. +# Only one log target can be specified. +# Values: STDOUT STDERR SYSLOG file Default: /var/log/fail2ban.log # logtarget = /var/log/fail2ban.log Modified: trunk/server/server.py =================================================================== --- trunk/server/server.py 2006-12-11 22:18:41 UTC (rev 487) +++ trunk/server/server.py 2006-12-13 23:02:46 UTC (rev 488) @@ -306,7 +306,9 @@ # Remove previous handler logging.getLogger("fail2ban").handlers = [] if target == "SYSLOG": - hdlr = logging.handlers.SysLogHandler() + facility = logging.handlers.SysLogHandler.LOG_DAEMON + hdlr = logging.handlers.SysLogHandler("/dev/log", + facility = facility) elif target == "STDOUT": hdlr = logging.StreamHandler(sys.stdout) elif target == "STDERR": This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |