- Added log reader name

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@59 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.6
Cyril Jaquier 2005-02-20 11:16:56 +00:00
parent 16dbc44607
commit deffa8f5aa
1 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,16 @@ class LogReader:
self.ignoreIpList = []
self.lastModTime = 0
self.logSys = logSys
def setName(self, name):
""" Sets the name of the log reader.
"""
self.name = name
def getName(self):
""" Gets the name of the log reader.
"""
return self.name
def addIgnoreIP(self, ip):
""" Adds an IP to the ignore list.