getTraceLogger

lsst.utils.logging.getTraceLogger(logger: Union[str, Logger, LsstLogAdapter], trace_level: int) LsstLogAdapter

Get a logger with the appropriate TRACE name.

Parameters:
loggerlogging.Logger or LsstLogAdapter or lsst.log.Log or str

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_levelint

The trace level to use for the logger.

Returns:
trace_loggerLsstLogAdapter

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 named TRACEn.