Class t.p.l.BaseLogFile:

Part of twisted.python.logfile View Source View In Hierarchy

Known subclasses: twisted.python.logfile.DailyLogFile, twisted.python.logfile.LogFile

The base class for a log file that can be rotated.
Method __init__ Undocumented
Method shouldRotate Override with a method to that returns true if the log
Method _openFile Open the log file.
Method __getstate__ Undocumented
Method __setstate__ Undocumented
Method write Write some data to the file.
Method flush Flush the file.
Method close Close the file.
Method getCurrentLog Return a LogReader for the current log file.
def __init__(self, name, directory, defaultMode=None): (source)
Undocumented
def shouldRotate(self): (source)
Override with a method to that returns true if the log should be rotated
def _openFile(self): (source)
Open the log file.
def __getstate__(self): (source)
Undocumented
def __setstate__(self, state): (source)
Undocumented
def write(self, data): (source)
Write some data to the file.
def flush(self): (source)
Flush the file.
def close(self): (source)

Close the file.

The file cannot be used once it has been closed.
def getCurrentLog(self): (source)
Return a LogReader for the current log file.
API Documentation for twisted, generated by pydoctor.