Package multi :: Module misc :: Class Verbosity
[hide private]
[frames] | no frames]

type Verbosity

source code


A special singleton structure for changing the verbosity level on the fly.

Instance Methods [hide private]
int
level(self)
Return the current verbosity level.
source code
 
set(self, value=0)
Set the verbosity level.
source code
Static Methods [hide private]
 
__new__(self, *args, **kargs)
Replacement function for implementing the singleton design pattern.
source code
Class Variables [hide private]
  instance = None
  _value = 0
Method Details [hide private]

__new__(self, *args, **kargs)
Static Method

source code 

Replacement function for implementing the singleton design pattern.

Overrides: object.__new__

level(self)

source code 

Return the current verbosity level.

Returns: int
The current verbosity level.

set(self, value=0)

source code 

Set the verbosity level.

Parameters:
  • value (int) - If given, then the verbosity level will be set. A value of 0 suppresses all output. A value of 1 causes the minimal amount of information to be printed. A value of 2 will switch on a number of debugging printouts. Values greater than 2 currently do nothing, though this might change in the future.