trace_set_at¶
-
lsst.utils.logging.trace_set_at(name: str, number: int) → None¶ Adjusts 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 toINFOand those below the threshold are set toDEBUG. The expectation is thatTRACEloggers only issueDEBUGlog messages.Examples
lsst.utils.logging.trace_set_at("lsst.afw", 3)
This will set loggers
TRACE0.lsst.afwtoTRACE3.lsst.afwtoDEBUGandTRACE4.lsst.afwandTRACE5.lsst.afwtoINFO.