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.

logger : logging.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_level : int

The trace level to use for the logger.

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