class documentation
class _LogObserver: (source)
Observes the Twisted logs and catches any errors.
Method | __init__ |
Undocumented |
Method | flush |
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 | get |
Return a list of errors caught by this observer. |
Method | got |
The actual observer method. Called whenever a message is logged. |
Method | _add |
Undocumented |
Method | _clear |
Stop ignoring any errors we might currently be ignoring. |
Method | _ignore |
Do not store any errors with any of the given types. |
Method | _remove |
Undocumented |
Instance Variable | _added |
A 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. |
Instance Variable | _errors |
A list of Failure instances which were received as error events from the Twisted logging system. |
Instance Variable | _ignored |
A list of exception types which will not be recorded. |
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.
The actual observer method. Called whenever a message is logged.
Parameters | |
event | A dictionary containing the log message. Actual structure undocumented (see source for twisted.python.log ). |
A 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.