trace_set_at¶
-
lsst.utils.logging.
trace_set_at
(name: str, number: int) → None¶ Adjust logging level to display messages with the trace number being less than or equal to the provided value.
Parameters: Notes
Loggers
TRACE0.
toTRACE5.
are set. All loggers above the specified threshold are set toINFO
and those below the threshold are set toDEBUG
. The expectation is thatTRACE
loggers only issueDEBUG
log messages.If
lsst.log
is installed, this function will also calllsst.log.utils.traceSetAt
to ensure that non-Python loggers are also configured correctly.Examples
lsst.utils.logging.trace_set_at("lsst.afw", 3)
This will set loggers
TRACE0.lsst.afw
toTRACE3.lsst.afw
toDEBUG
andTRACE4.lsst.afw
andTRACE5.lsst.afw
toINFO
.