class documentation
class FileLogObserver(_GlobalStartStopObserver): (source)
Constructor: FileLogObserver(f)
Log observer that writes to a file-like object.
Method | __init__ |
Undocumented |
Method | emit |
Format the given log event as text and write it to the output file. |
Method | format |
Format the given UTC value as a string representing that time in the local timezone. |
Method | get |
Return the current local timezone offset from UTC. |
Instance Variable | flush |
Undocumented |
Instance Variable | time |
If not None , the format string passed to strftime(). |
Instance Variable | write |
Undocumented |
Inherited from _GlobalStartStopObserver
:
Method | start |
Start observing log events. |
Method | stop |
Stop observing log events. |
Format the given log event as text and write it to the output file.
Parameters | |
eventEventDict | a log event |
Format the given UTC value as a string representing that time in the local timezone.
By default it's formatted as an 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.
Parameters | |
when:int | POSIX (ie, UTC) timestamp for which to find the offset. |
Returns | |
str | Undocumented |