Class t.p.l.FileLogObserver:

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

Log observer that writes to a file-like object.
Instance VariablestimeFormatIf not None, the format string passed to strftime(). (type: str or NoneType )
Method __init__ Undocumented
Method _safeFormat Undocumented
Method getTimezoneOffset Return the current local timezone offset from UTC.
Method formatTime Return the given UTC value formatted as a human-readable string
Method emit Undocumented
Method start Start observing log events.
Method stop Stop observing log events.
def __init__(self, f): (source)
Undocumented
def _safeFormat(self, fmtString, crap): (source)
Undocumented
def getTimezoneOffset(self): (source)
Return the current local timezone offset from UTC.
ReturnsThe number of seconds offset from UTC. West is positive, east is negative. (type: int )
def formatTime(self, when): (source)
Return the given UTC value formatted as a human-readable string representing that time in the local timezone.
ParameterswhenPOSIX timestamp to convert to a human-readable string. (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.