Package foolscap :: Package logging :: Module incident :: Class IncidentQualifier
[hide private]
[frames] | no frames]

Class IncidentQualifier

source code

I am responsible for deciding what qualifies as an Incident. I look at the event stream and watch for a 'triggering event', then signal my handler when the events that I've seen are severe enought to warrant recording the recent history in an 'incident log file'.

My event() method should be called with each event. When I declare an incident, I will call my handler's declare_incident(ev) method, with the triggering event. Since event() will be fired from an eventual-send queue, the incident will be declared slightly later than the triggering event.

Instance Methods [hide private]
 
set_handler(self, handler) source code
 
check_event(self, ev) source code
 
event(self, ev) source code