Package mvpa :: Package base :: Class WarningLog

[hide private]
[frames] | no frames]

# Class WarningLog

source code

Logging class of messsages to be printed just once per each message

Instance Methods | [hide private]

__init__(self, btlevels=10, btdefault=False, maxcount=1, *args, **kwargs) Define Warning logger. | source code

__call__(self, msg, bt=None) Write `msg` if `ident` occured less than `count` times by now. | source code

_setMaxCount(self, value) Set maxcount for the warning | source code

Inherited from `verbosity.Logger`: `__del__` Inherited from `verbosity.Logger` (private): `_closeOpenedHandlers`, `_getHandlers`, `_setHandlers` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]

| maxcount = `property(fget= lambda x: x.__maxcount, fset= _setMa`...``
Inherited from `verbosity.Logger`: `handlers`, `lfprev`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, btlevels=10, btdefault=False, maxcount=1, *args, **kwargs)
(Constructor)

source code

Define Warning logger.

It is defined by
  btlevels : int
    how many levels of backtrack to print to give a hint on WTF
  btdefault : bool
    if to print backtrace for all warnings at all
  maxcount : int
    how many times to print each warning

Overrides: object.__init__

### __call__(self, msg, bt=None)
(Call operator)

source code

Write `msg` if `ident` occured less than `count` times by now.

Overrides: verbosity.Logger.__call__
  (inherited documentation)

Class Variable Details | [hide private]

### maxcount

Value:

      property(fget= lambda x: x.__maxcount, fset= _setMaxCount)