Logger for debugging purposes.
Expands SetLogger with ability to print some interesting information (named Metric... XXX) about current process at each debug printout
Methods
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
offsetbydepth : bool, optional
*args, **kwargs :
|
---|
Methods
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 |
Register some metric to report
func can be either a function call or a string which should correspond to known metrics