diff --git a/fail2ban.py b/fail2ban.py index 9cab58d3b..8eaaeb98b 100755 --- a/fail2ban.py +++ b/fail2ban.py @@ -24,7 +24,7 @@ __date__ = "$Date$" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" -import time, sys, getopt, os, string, signal, log4py +import time, sys, getopt, os, string, signal, logging, logging.handlers from ConfigParser import * from version import version @@ -35,8 +35,8 @@ from utils.mail import Mail from utils.dns import * from utils.process import * -# Gets the instance of log4py. -logSys = log4py.Logger().get_instance() +# Gets the instance of the logger. +logSys = logging.getLogger("fail2ban") # Global variables logFwList = list() @@ -50,13 +50,13 @@ def dispUsage(): print "Fail2Ban v"+version+" reads log file that contains password failure report" print "and bans the corresponding IP addresses using firewall rules." print - print " -b start fail2ban in background" - print " -d start fail2ban in debug mode" + print " -b start in background" + print " -d start in debug mode" print " -c read configuration file FILE" print " -p create PID lock in FILE" print " -h display this help message" print " -i IP(s) to ignore" - print " -k kill a currently running Fail2Ban instance" + print " -k kill a currently running instance" print " -r allow a max of VALUE password failure" print " -t