t.p.l.FileLogObserver : class documentation

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

Log observer that writes to a file-like object.
Instance Variable timeFormat If not None, the format string passed to strftime(). (type: str or NoneType)
Method __init__ Undocumented
Method getTimezoneOffset Return the current local timezone offset from UTC.
Method formatTime Format the given UTC value as a string representing that time in the local timezone.
Method emit Undocumented
Method start Start observing log events.
Method stop Stop observing log events.
timeFormat =
If not None, the format string passed to strftime(). (type: str or NoneType)
def __init__(self, f): (source)
Undocumented
def getTimezoneOffset(self, when): (source)
Return the current local timezone offset from UTC.
ParameterswhenPOSIX (ie, UTC) timestamp for which to find the offset. (type: int)
ReturnsThe number of seconds offset from UTC. West is positive, east is negative. (type: int)
def formatTime(self, when): (source)
Format the given UTC value as a string representing that time in the local timezone.

By default it's formatted as a ISO8601-like string (ISO8601 date and ISO8601 time separated by a space). It can be customized using the timeFormat attribute, which will be used as input for the underlying datetime.datetime.strftime call.

ParameterswhenPOSIX (ie, UTC) timestamp for which to find the offset. (type: int)
Returns (type: str)
def emit(self, eventDict): (source)
Undocumented
def start(self): (source)
Start observing log events.
def stop(self): (source)
Stop observing log events.
API Documentation for Twisted, generated by pydoctor at 2014-05-12 18:27:00.