t.t.u._LogObserver(object) : class documentation

Part of twisted.trial.unittest View Source View In Hierarchy

Observes the Twisted logs and catches any errors.
Instance Variables_errorsA list of Failure instances which were received as error events from the Twisted logging system.
_addedA int giving the number of times _add has been called less the number of times _remove has been called; used to only add this observer to the Twisted logging since once, regardless of the number of calls to the add method.
_ignoredA list of exception types which will not be recorded.
Method __init__ Undocumented
Method flushErrors Flush errors from the list of caught errors. If no arguments are specified, remove all errors. If arguments are specified, only remove errors of those types from the stored list.
Method getErrors Return a list of errors caught by this observer.
Method gotEvent The actual observer method. Called whenever a message is logged.
Method _add Undocumented
Method _remove Undocumented
Method _ignoreErrors Do not store any errors with any of the given types.
Method _clearIgnores Stop ignoring any errors we might currently be ignoring.
def __init__(self): (source)
Undocumented
def _add(self): (source)
Undocumented
def _remove(self): (source)
Undocumented
def _ignoreErrors(self, *errorTypes): (source)
Do not store any errors with any of the given types.
def _clearIgnores(self): (source)
Stop ignoring any errors we might currently be ignoring.
def flushErrors(self, *errorTypes): (source)
Flush errors from the list of caught errors. If no arguments are specified, remove all errors. If arguments are specified, only remove errors of those types from the stored list.
def getErrors(self): (source)
Return a list of errors caught by this observer.
def gotEvent(self, event): (source)
The actual observer method. Called whenever a message is logged.
ParameterseventA dictionary containing the log message. Actual structure undocumented (see source for twisted.python.log).
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:17:34.