Log reader class. More...
Public Member Functions | |
| def | __init__ |
| Constructor. | |
| def | addLogPath |
| Add a log file path. | |
| def | callback |
| def | delLogPath |
| Delete a log path. | |
| def | run |
| Main loop. | |
Public Attributes | |
| monitor | |
Log reader class.
This class reads a log file and detects login failures or anything else that matches a given regular expression. This class is instanciated by a Jail object.
Definition at line 43 of file filtergamin.py.
| def server::filtergamin::FilterGamin::__init__ | ( | self, | ||
| jail | ||||
| ) |
Constructor.
Initialize the filter object with default values.
| jail | the jail object |
Definition at line 51 of file filtergamin.py.
| def server::filtergamin::FilterGamin::addLogPath | ( | self, | ||
| path, | ||||
tail = True | ||||
| ) |
| def server::filtergamin::FilterGamin::callback | ( | self, | ||
| path, | ||||
| event | ||||
| ) |
Definition at line 59 of file filtergamin.py.
| def server::filtergamin::FilterGamin::delLogPath | ( | self, | ||
| path | ||||
| ) |
Delete a log path.
| path | the log file to delete |
Definition at line 85 of file filtergamin.py.
| def server::filtergamin::FilterGamin::run | ( | self | ) |
Main loop.
This function is the main loop of the thread. It checks if the file has been modified and looks for failures.
Definition at line 100 of file filtergamin.py.
Definition at line 55 of file filtergamin.py.
1.6.3