A log file that can be rotated.
Methods
|
|
|
|
__getstate__
|
__getstate__ ( self )
|
|
__init__
|
__init__ (
self,
name,
directory,
rotateLength=1000000,
)
|
|
__setstate__
|
__setstate__ ( self, state )
|
|
_openFile
|
_openFile ( self )
Open the log file.
|
|
close
|
close ( self )
Close the file.
The file cannot be used once it has been closed.
|
|
flush
|
flush ( self )
Flush the file.
|
|
getCurrentLog
|
getCurrentLog ( self )
Return a LogReader for the current log file.
|
|
getLog
|
getLog ( self, identifier )
Given an integer, return a LogReader for an old log file.
|
|
listLogs
|
listLogs ( self )
Return sorted list of integers - the old logs' identifiers.
|
|
rotate
|
rotate ( self )
Rotate the file and create a new one.
|
|
write
|
write ( self, data )
Write some data to the file.
|