- Added date format for asctime without year

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@568 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.x
Cyril Jaquier 2007-04-01 20:42:05 +00:00
parent 090518ddaf
commit 6145a88fe8
2 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,7 @@ ver. 0.?.? (2007/??/??) - ???
----------
- Close opened handlers. Thanks to Yaroslav Halchenko
- Fixed "reload" bug. Many many thanks to Yaroslav Halchenko
- Added date format for asctime without year
ver. 0.7.8 (2007/03/21) - release candidate
----------

View File

@ -56,6 +56,12 @@ class DateDetector:
template.setRegex("\S{3} \S{3}\s{1,2}\d{1,2} \d{2}:\d{2}:\d{2} \d{4}")
template.setPattern("%a %b %d %H:%M:%S %Y")
self.__templates.append(template)
# asctime without year
template = DateStrptime()
template.setName("Weekday Month Day Hour:Minute:Second")
template.setRegex("\S{3} \S{3}\s{1,2}\d{1,2} \d{2}:\d{2}:\d{2}")
template.setPattern("%a %b %d %H:%M:%S")
self.__templates.append(template)
# simple date
template = DateStrptime()
template.setName("Year/Month/Day Hour:Minute:Second")