class twisted.logger.LogPublisher: (source)
ILogObserver that fans out events to other observers.
Keeps track of a set of ILogObserver
objects and forwards events to each.
Method | __init__ | Undocumented |
Instance Variable | log | Undocumented |
Method | addObserver | Registers an observer with this publisher. |
Method | removeObserver | Unregisters an observer with this publisher. |
Method | __call__ | Forward events to contained observers. |
Instance Variable | _observers | Undocumented |
Method | _errorLoggerForObserver | Create an error-logger based on this logger, which does not contain the given bad observer. |
Undocumented
Parameters | observers | Undocumented (type: ILogObserver ) |
Registers an observer with this publisher.
Parameters | observer | An ILogObserver to add. (type: ILogObserver ) |
Unregisters an observer with this publisher.
Parameters | observer | An ILogObserver to remove. (type: ILogObserver ) |
Forward events to contained observers.
Parameters | event | Undocumented (type: LogEvent ) |
Create an error-logger based on this logger, which does not contain the given bad observer.
Parameters | observer | The observer which previously had an error. (type: ILogObserver ) |
Returns | A Logger without the given observer. (type: Logger ) |