lsst.log  22.0.1-7-gba73697+7e58257bcf
Public Member Functions | Public Attributes | List of all members
lsst.log.log.logContinued.LogHandler Class Reference
Inheritance diagram for lsst.log.log.logContinued.LogHandler:

Public Member Functions

def __init__ (self, level=logging.NOTSET)
 
def handle (self, record)
 
def emit (self, record)
 

Public Attributes

 formatter
 

Detailed Description

Handler for Python logging module that emits to LSST logging.

Parameters
----------
level : `int`
    Level at which to set the this handler.

Notes
-----
If this handler is enabled and `lsst.log` has been configured to use
Python `logging`, the handler will do nothing itself if any other
handler has been registered with the Python logger.  If it does not
think that anything else is handling the message it will attempt to
send the message via a default `~logging.StreamHandler`.  The safest
approach is to configure the logger with an additional handler
(possibly the ROOT logger) if `lsst.log` is to be configured to use
Python logging.

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