Package mvpa :: Package base :: Module verbosity :: Class OnceLogger
[hide private]
[frames] | no frames]

Class OnceLogger

source code


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

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Define once logger.
source code
 
__call__(self, ident, msg, count=1, *args, **kwargs)
Write msg if ident occured less than count times by now.
source code

Inherited from Logger: __del__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from Logger: handlers, lfprev

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 
Define once logger.
Overrides: object.__init__

__call__(self, ident, msg, count=1, *args, **kwargs)
(Call operator)

source code 
Write msg if ident occured less than count times by now.
Overrides: Logger.__call__