getTraceLogger¶
- lsst.utils.logging.getTraceLogger(logger: str | Logger | LsstLogAdapter, trace_level: int) LsstLogAdapter ¶
Get a logger with the appropriate TRACE name.
- Parameters:
- logger
logging.Logger
orLsstLogAdapter
orlsst.log.Log
orstr
A logger to be used to derive the new trace logger. Can be a logger object that supports the
name
property or a string.- trace_level
int
The trace level to use for the logger.
- logger
- Returns:
- trace_logger
LsstLogAdapter
A new trace logger. The name will be derived by pre-pending
TRACEn.
to the name of the supplied logger. If the root logger is given the returned logger will be namedTRACEn
.
- trace_logger