Implements interfaces: twisted.logger.ILogObserver

ILogObserver That stores its events in a list for later inspection. This class is similar to LimitedHistoryLogObserver save that the internal buffer is public and intended for external inspection. The observer implements the sequence protocol to ease iteration of the events.

Method __init__ Undocumented
Method __len__ Undocumented
Method __getitem__ Undocumented
Method __iter__ Undocumented
Method __call__
Class Method createWithCleanup Create an EventLoggingObserver instance that observes the provided publisher and will be cleaned up with addCleanup().
Instance Variable _events The events captured by this observer (type: list)
_events =
The events captured by this observer (type: list)
def __init__(self):
Undocumented
def __len__(self):
Undocumented
def __getitem__(self, index):
Undocumented
def __iter__(self):
Undocumented
def __call__(self, event):
@classmethod
def createWithCleanup(cls, testInstance, publisher):

Create an EventLoggingObserver instance that observes the provided publisher and will be cleaned up with addCleanup().

ParameterstestInstanceTest instance in which this logger is used. (type: twisted.trial.unittest.TestCase)
publisherLog publisher to observe. (type: twisted.logger.LogPublisher)
ReturnsAn EventLoggingObserver configured to observe the provided publisher. (type: twisted.test.proto_helpers.EventLoggingObserver)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.