lsst.ctrl.pool  20.0.0+5155d6f571
Public Member Functions | Public Attributes | List of all members
lsst.ctrl.pool.pool.Debugger Class Reference
Inheritance diagram for lsst.ctrl.pool.pool.Debugger:
lsst.ctrl.pool.pool.SingletonMeta

Public Member Functions

def __init__ (self)
 
def log (self, source, msg, *args)
 Log message. More...
 
def __call__ (cls, *args, **kwargs)
 

Public Attributes

 enabled
 
 out
 

Detailed Description

Debug logger singleton

Disabled by default; to enable, do: 'Debugger().enabled = True'
You can also redirect the output by changing the 'out' attribute.

Definition at line 393 of file pool.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.ctrl.pool.pool.Debugger.__init__ (   self)

Definition at line 400 of file pool.py.

Member Function Documentation

◆ __call__()

def lsst.ctrl.pool.pool.SingletonMeta.__call__ (   cls,
args,
**  kwargs 
)
inherited

Definition at line 387 of file pool.py.

◆ log()

def lsst.ctrl.pool.pool.Debugger.log (   self,
  source,
  msg,
args 
)

Log message.

The 'args' are only stringified if we're enabled.

Parameters
sourcename of source
msgmessage to write
argsadditional outputs to append to message

Definition at line 404 of file pool.py.

Member Data Documentation

◆ enabled

lsst.ctrl.pool.pool.Debugger.enabled

Definition at line 401 of file pool.py.

◆ out

lsst.ctrl.pool.pool.Debugger.out

Definition at line 402 of file pool.py.


The documentation for this class was generated from the following file: