Package foolscap :: Package logging :: Module log :: Class FoolscapLogger
[hide private]
[frames] | no frames]

Class FoolscapLogger

source code

Instance Methods [hide private]
 
__init__(self) source code
 
get_incarnation(self) source code
 
addObserver(self, observer) source code
 
removeObserver(self, observer) source code
 
addImmediateObserver(self, observer) source code
 
removeImmediateObserver(self, observer) source code
 
setLogDir(self, directory) source code
 
setIncidentQualifier(self, iq) source code
 
deactivate_incident_qualifier(self) source code
 
activate_incident_qualifier(self) source code
 
setIncidentReporterFactory(self, ir) source code
 
addImmediateIncidentObserver(self, observer) source code
 
removeImmediateIncidentObserver(self, observer) source code
 
explain_facility(self, facility, description) source code
 
set_buffer_size(self, level, sizelimit, facility=None) source code
 
set_generation_threshold(self, level, facility=None) source code
 
get_generation_threshold(self, facility=None) source code
 
msg(self, *args, **kwargs)
Returns: the event number for this logevent, intended to be passed to parent= in a subsequent call to msg()
source code
 
err(self, _stuff=None, _why=None, **kw)
Write a failure to the log.
source code
 
add_event(self, facility, level, event) source code
 
declare_incident(self, triggering_event) source code
 
incident_recorded(self, filename, name, trigger) source code
 
get_active_incident_reporter(self) source code
 
setLogPort(self, logport) source code
 
getLogPort(self) source code
 
get_buffered_events(self) source code
Class Variables [hide private]
  DEFAULT_SIZELIMIT = 100
  DEFAULT_THRESHOLD = 10
  MAX_RECORDED_INCIDENTS = 20
Method Details [hide private]

msg(self, *args, **kwargs)

source code 
Parameters:
  • parent - the event number of the most direct parent of this event
  • facility - the slash-joined facility name, or None
  • level - the numeric severity level, like NOISY or SCARY
  • stacktrace - a string stacktrace, or True to generate one
Returns:
the event number for this logevent, intended to be passed to parent= in a subsequent call to msg()