LevelTranslator#
- class lsst.log.LevelTranslator#
Bases:
objectHelper class to translate levels between
lsst.logand Pythonlogging.Methods Summary
logging2lsstLog(level)Translates from standard python
loggingmodule levels to lsst.log/log4cxx levels.lsstLog2logging(level)Translates from lsst.log/log4cxx levels to
loggingmodule levels.Methods Documentation
- static logging2lsstLog(level)#
Translates from standard python
loggingmodule levels to lsst.log/log4cxx levels.Parameters#
- level
int Logging level number used by Python
logging, typically one of the constants defined byloggingmodule (logging.DEBUG,logging.INFO, etc.)
Returns#
- level
int Correspoding logging level number for
lsst.logmodule.
- level
- static lsstLog2logging(level)#
Translates from lsst.log/log4cxx levels to
loggingmodule 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
loggingmodule.
- level