Part of twisted.python.logfile View Source View In Hierarchy
A log file that can be rotated.
A rotateLength of None disables automatic log rotation.Method | __init__ | Undocumented |
Method | _openFile | Open the log file. |
Method | shouldRotate | Rotate when the log file size is larger than rotateLength |
Method | getLog | Given an integer, return a LogReader for an old log file. |
Method | write | Write some data to the file |
Method | rotate | Rotate the file and create a new one. |
Method | listLogs | Return sorted list of integers - the old logs' identifiers. |
Method | __getstate__ | Undocumented |
Inherited from BaseLogFile:
Method | __setstate__ | Undocumented |
Method | flush | Flush the file. |
Method | close | Close the file. |
Method | getCurrentLog | Return a LogReader for the current log file. |
Rotate the file and create a new one.
If it's not possible to open new logfile, this will fail silently, and continue logging to old logfile.