lsst.ctrl.pool  14.0-1-ga2912ff+12
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__ (self, 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 391 of file pool.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 398 of file pool.py.

Member Function Documentation

◆ __call__()

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

Definition at line 385 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 402 of file pool.py.

Member Data Documentation

◆ enabled

lsst.ctrl.pool.pool.Debugger.enabled

Definition at line 399 of file pool.py.

◆ out

lsst.ctrl.pool.pool.Debugger.out

Definition at line 400 of file pool.py.


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