LevelTranslator¶
- class lsst.log.LevelTranslator¶
Bases:
object
Helper class to translate levels between
lsst.log
and Pythonlogging
.Methods Summary
logging2lsstLog
(level)Translates from standard python
logging
module levels to lsst.log/log4cxx levels.lsstLog2logging
(level)Translates from lsst.log/log4cxx levels to
logging
module levels.Methods Documentation
- static logging2lsstLog(level)¶
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 bylogging
module (logging.DEBUG
,logging.INFO
, etc.)
- level
- Returns:
- level
int
Correspoding logging level number for
lsst.log
module.
- level