mvpa2.base.DebugLogger¶
-
class
mvpa2.base.
DebugLogger
(metrics=None, offsetbydepth=True, *args, **kwargs)¶ Logger for debugging purposes.
Expands SetLogger with ability to print some interesting information (named Metric... XXX) about current process at each debug printout
Attributes
active
handlers
Return active handlers lfprev
metrics
offsetbydepth
printsetid
registered
Methods
__call__
(setid, msg, \*args, \*\*kwargs)print_registered
([detailed])register
(setid, description)“Register” a new setid with a given description for easy finding register_metric
(func)Register some metric to report set_active_from_string
(value)Given a string listing registered(?) setids, make then active Parameters: metrics : iterable of (func or str) or None
What metrics (functions) to be reported. If item is a string, it is matched against
_known_metrics
keys.offsetbydepth : bool, optional
Either to offset lines depending on backtrace depth (default behavior).
*args, **kwargs
Passed to SetLogger initialization XXX
Attributes
active
handlers
Return active handlers lfprev
metrics
offsetbydepth
printsetid
registered
Methods
__call__
(setid, msg, \*args, \*\*kwargs)print_registered
([detailed])register
(setid, description)“Register” a new setid with a given description for easy finding register_metric
(func)Register some metric to report set_active_from_string
(value)Given a string listing registered(?) setids, make then active -
metrics
¶
-
offsetbydepth
¶
-
register_metric
(func)¶ Register some metric to report
func can be either a function call or a string which should correspond to known metrics
-