class ILogObserver(Interface): (source)
Known implementations: twisted.internet.testing.EventLoggingObserver
, twisted.logger.FileLogObserver
, twisted.logger.FilteringLogObserver
, twisted.logger.LegacyLogObserverWrapper
, twisted.logger.LimitedHistoryLogObserver
, twisted.logger.LogPublisher
, twisted.logger.STDLibLogObserver
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:LogEvent | 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):
|