twisted.logger.test.test_logger.TestLogger(Logger)
class documentationtwisted.logger.test.test_logger
(View In Hierarchy)
Logger
with an
overridden emit
method that keeps track of received
events.
Method | emit | Emit a log event to all log observers at the given level. |
Inherited from Logger:
Instance Variable | namespace | the namespace for this logger (type: str ) |
Instance Variable | source | The object which is emitting events via this logger (type: object ) |
Instance Variable | observer | The observer that this logger will send events to. |
Method | __init__ | No summary |
Method | __get__ | When used as a descriptor, i.e.: |
Method | __repr__ | Undocumented |
Method | failure | Log a failure and emit a traceback. |
Method | debug | Emit a log event at log level LogLevel.debug . |
Method | info | Emit a log event at log level LogLevel.info . |
Method | warn | Emit a log event at log level LogLevel.warn . |
Method | error | Emit a log event at log level LogLevel.error . |
Method | critical | Emit a log event at log level LogLevel.critical . |
Static Method | _namespaceFromCallingContext | Derive a namespace from the module containing the caller's caller. |
Emit a log event to all log observers at the given level.
Parameters | level | a LogLevel |
format | a message format using new-style (PEP 3101) formatting. The logging event
(which is a dict )
is used to render this format string. | |
kwargs | additional key/value pairs to include in the event. Note that values which are later mutated may result in non-deterministic behavior from observers that schedule work for later execution. |