lsst.log  22.0.0-3-gd2ef7b4+782b3b5ca8
Static Public Member Functions | List of all members
lsst.log.log.logContinued.LevelTranslator Class Reference

Static Public Member Functions

def lsstLog2logging (level)
 
def logging2lsstLog (level)
 

Detailed Description

Helper class to translate levels between ``lsst.log`` and Python
`logging`.

Member Function Documentation

◆ logging2lsstLog()

def lsst.log.log.logContinued.LevelTranslator.logging2lsstLog (   level)
static
Translates from standard python `logging` module levels to
lsst.log/log4cxx levels.

Parameters
----------
level : `int`
    Logging level number used by Python `logging`, typically one of
    the constants defined by `logging` module (`logging.DEBUG`,
    `logging.INFO`, etc.)

Returns
-------
level : `int`
    Correspoding logging level number for `lsst.log` module.

◆ lsstLog2logging()

def lsst.log.log.logContinued.LevelTranslator.lsstLog2logging (   level)
static
Translates from lsst.log/log4cxx levels to `logging` module levels.

Parameters
----------
level : `int`
    Logging level number used by `lsst.log`, typically one of the
    constants defined in this module (`DEBUG`, `INFO`, etc.)

Returns
-------
level : `int`
    Correspoding logging level number for Python `logging` module.

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