Home | Trees | Index | Help |
|
---|
Package twisted :: Package python :: Module logfile :: Class LogFile |
|
BaseLogFile
--+
|
LogFile
A log file that can be rotated.
A rotateLength of None disables automatic log rotation.Method Summary | |
---|---|
__init__(self,
name,
directory,
rotateLength,
defaultMode)
| |
__getstate__(self)
| |
Rotate the file and create a new one. | |
Write some data to the file | |
Open the log file. | |
Given an integer, return a LogReader for an old log file. | |
Return sorted list of integers - the old logs' identifiers. | |
rotate(*args,
**kw)
| |
Rotate when the log file size is larger than rotateLength | |
write(*args,
**kw)
| |
Inherited from BaseLogFile | |
| |
Close the file. | |
Flush the file. | |
Return a LogReader for the current log file. |
Class Variable Summary | |
---|---|
list |
__hook_post_twisted_python_logfile_LogFile_rotate__ = [<...
|
list |
__hook_post_twisted_python_logfile_LogFile_write__ = [<f...
|
list |
__hook_pre_twisted_python_logfile_LogFile_rotate__ = [<f...
|
list |
__hook_pre_twisted_python_logfile_LogFile_write__ = [<fu...
|
Inherited from BaseLogFile | |
list |
synchronized = ['write', 'rotate']
|
Method Details |
---|
__hook_orig_twisted_python_logfile_LogFile_rotate__(self)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. |
__hook_orig_twisted_python_logfile_LogFile_write__(self, data)Write some data to the file
|
_openFile(self)Open the log file.
|
getLog(self, identifier)Given an integer, return a LogReader for an old log file. |
listLogs(self)Return sorted list of integers - the old logs' identifiers. |
shouldRotate(self)Rotate when the log file size is larger than rotateLength |
Class Variable Details |
---|
__hook_post_twisted_python_logfile_LogFile_rotate__
|
__hook_post_twisted_python_logfile_LogFile_write__
|
__hook_pre_twisted_python_logfile_LogFile_rotate__
|
__hook_pre_twisted_python_logfile_LogFile_write__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:58 2004 | http://epydoc.sf.net |