class documentation

class twisted.logger.LogPublisher: (source)

View In Hierarchy

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.
def __init__(self, *observers): (source)

Undocumented

ParametersobserversUndocumented (type: ILogObserver)
_observers = (source)

Undocumented

Undocumented

def addObserver(self, observer): (source)

Registers an observer with this publisher.

ParametersobserverAn ILogObserver to add. (type: ILogObserver)
def removeObserver(self, observer): (source)

Unregisters an observer with this publisher.

ParametersobserverAn ILogObserver to remove. (type: ILogObserver)
def __call__(self, event): (source)

Forward events to contained observers.

ParameterseventUndocumented (type: LogEvent)
def _errorLoggerForObserver(self, observer): (source)

Create an error-logger based on this logger, which does not contain the given bad observer.

ParametersobserverThe observer which previously had an error. (type: ILogObserver)
ReturnsA Logger without the given observer. (type: Logger)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.