Part of udplog.twisted View Source View In Hierarchy
Twisted Log Observer that emits to UDP log.
Line # | Kind | Name | Docs |
---|---|---|---|
0 | Instance Variable | defaultCategory | Defailt log category. If there is no key category in the
eventDict , use this category instead. |
41 | Method | __init__ | Undocumented |
46 | Method | emit | Log an event. |
110 | Method | start | Start observing log events. |
117 | Method | stop | Stop observing log events. |
category
in the
eventDict
, use this category instead.
Log an event.
This converts eventDict
so that it can be serialized to
JSON and sent over UDP to the logging server.
The key 'time'
that is automatically provided by Twisted is
renamed to 'timestamp'
that is used in UDP log.
When Twisted logs an error, the associated Failure is in the
eventDict
with key 'failure'
. For warnings,
'warning'
holds the warning class and its arguments, and
'filename'
, 'lineno'
the location where the
warning was reported from. See twisted.python.log.textFromEventDict
for how 'format'
is used to render failures and warnings.
See twisted.python.log.ILogObserver
.