class twisted.logger.ILogObserver(Interface): (source)
Known implementations: twisted.internet.testing.EventLoggingObserver
An observer which can handle log events.
Unlike most interfaces within Twisted, an ILogObserver
must be thread-safe. Log observers may be called indiscriminately from many different threads, as any thread may wish to log a message at any time.
Method | __call__ | Log an event. |
Log an event.
Parameters | event | A dictionary with arbitrary keys as defined by the application emitting logging events, as well as keys added by the logging system. The logging system reserves the right to set any key beginning with the prefix "log_" ; applications should not use any key so named. Currently, the following keys are used by the logging system in some way, if they are present (they are all optional):
LogEvent ) |