Table Of Contents

Previous topic

mvpa.base.externals

Next topic

mvpa.misc

This Page

Quick search

mvpa.base.verbosity

Verbose output and debugging facility

Examples: from verbosity import verbose, debug; debug.active = [1,2,3]; debug(1, “blah”)

The comprehensive API documentation for this module, including all technical details, is available in the Epydoc-generated API reference for mvpa.base.verbosity (for developers).

Classes

LevelLogger

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

See also

Derived classes might provide additional methods via their base classes. Please refer to the list of base classes (if it exists) at the begining of the LevelLogger documentation.

Full API documentation of LevelLogger in module mvpa.base.verbosity.

Logger

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

See also

Derived classes might provide additional methods via their base classes. Please refer to the list of base classes (if it exists) at the begining of the Logger documentation.

Full API documentation of Logger in module mvpa.base.verbosity.

OnceLogger

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.

See also

Derived classes might provide additional methods via their base classes. Please refer to the list of base classes (if it exists) at the begining of the OnceLogger documentation.

Full API documentation of OnceLogger in module mvpa.base.verbosity.

SetLogger

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
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

See also

Derived classes might provide additional methods via their base classes. Please refer to the list of base classes (if it exists) at the begining of the SetLogger documentation.

Full API documentation of SetLogger in module mvpa.base.verbosity.