getTraceLogger¶
-
lsst.utils.logging.
getTraceLogger
(logger: Union[str, logging.Logger, lsst.utils.logging.LsstLogAdapter], trace_level: int) → lsst.utils.logging.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.
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
.
- logger :