Home | Trees | Index | Help |
---|
Package twisted :: Package python :: Module logfile :: Class DailyLogFile |
|
BaseLogFile
--+
|
DailyLogFile
Method Summary | |
---|---|
__init__(self,
name,
directory,
defaultMode)
(inherited from BaseLogFile )
| |
__getstate__(self)
| |
Rotate the file and create a new one. | |
Write some data to the log file | |
__setstate__(self,
state)
(inherited from BaseLogFile )
| |
Close the file. (inherited from BaseLogFile )
| |
Flush the file. (inherited from BaseLogFile )
| |
Return a LogReader for the current log file. (inherited from BaseLogFile )
| |
Given a unix time, return a LogReader for an old log file. | |
rotate(*args,
**kw)
| |
Rotate when the date has changed since last write | |
Return the suffix given a (year, month, day) tuple or unixtime | |
Convert a unixtime to (year, month, day) localtime tuple, or return the current (year, month, day) localtime tuple. | |
write(*args,
**kw)
|
Method Details |
---|
__hook_orig_twisted_python_logfile_DailyLogFile_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_DailyLogFile_write__(self, data)Write some data to the log file |
getLog(self, identifier)Given a unix time, return a LogReader for an old log file. |
shouldRotate(self)Rotate when the date has changed since last write |
suffix(self, tupledate)Return the suffix given a (year, month, day) tuple or unixtime |
toDate(self, *args)Convert a unixtime to (year, month, day) localtime tuple, or return the current (year, month, day) localtime tuple. This function primarily exists so you may overload it with gmtime, or some cruft to make unit testing possible. |
Class Variable Details |
---|
__hook_post_twisted_python_logfile_DailyLogFile_rotate__
|
__hook_post_twisted_python_logfile_DailyLogFile_write__
|
__hook_pre_twisted_python_logfile_DailyLogFile_rotate__
|
__hook_pre_twisted_python_logfile_DailyLogFile_write__
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Fri Jun 27 03:45:57 2003 | http://epydoc.sf.net |