This content refers to the previous stable release of PyMVPA.
Please visit
www.pymvpa.org for the most
recent version of PyMVPA and its documentation.
base.verbosity
Module: base.verbosity
Inheritance diagram for mvpa.base.verbosity:
Verbose output and debugging facility
Examples:
from verbosity import verbose, debug; debug.active = [1,2,3]; debug(1, “blah”)
Classes
-
class mvpa.base.verbosity.LevelLogger(level=0, indent=' ', *args, **kwargs)
Bases: mvpa.base.verbosity.Logger
Logger which prints based on level – ie everything which is smaller
than specified level
Define level logger.
- It is defined by
- level, int: to which messages are reported
indent, string: symbol used to indent
-
indent
-
level
-
class mvpa.base.verbosity.Logger(handlers=None)
Bases: object
Base class to provide logging
Initialize the logger with a set of handlers to use for output
Each hanlder must have write() method implemented
-
handlers
Return active handlers
-
lfprev
-
class mvpa.base.verbosity.OnceLogger(*args, **kwargs)
Bases: mvpa.base.verbosity.Logger
Logger which prints a message for a given ID just once.
It could be used for one-time warning to don’t overfill the output
with useless repeatative messages
Define once logger.
-
class mvpa.base.verbosity.SetLogger(register=None, active=None, printsetid=True, *args, **kwargs)
Bases: mvpa.base.verbosity.Logger
Logger which prints based on defined sets identified by Id.
-
active
-
print_registered(detailed=True)
-
printsetid
-
register(setid, description)
“Register” a new setid with a given description for easy finding
-
registered
-
setActiveFromString(value)
Given a string listing registered(?) setids, make then active