From deffa8f5aa85db787777ff13b8bedb41be597075 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Sun, 20 Feb 2005 11:16:56 +0000 Subject: [PATCH] - Added log reader name git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@59 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- logreader/logreader.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/logreader/logreader.py b/logreader/logreader.py index 083e59d6..b782a140 100644 --- a/logreader/logreader.py +++ b/logreader/logreader.py @@ -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.