Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: utils
-
Labels:None
-
Story Points:1
-
Epic Link:
-
Team:Data Facility
Description
The default configurations such as format and levels are different between lsst.pex.logging and lsst.log. With DM-6999 logs of command line tasks are changed from lsst.pex.logging to lsst.log. For running command line tasks, logs are configured in pipe_base.
Based on RFC-203, another main use case is debug logging by running unit tests. In this case, log are not (and cannot be) configured in pipe_base command line interface. This ticket adds a default configuration in lsst.utils.tests so the default logs will look more similar to what they have been with pex.logging when running unit tests. Developers can put customized configuration in each unit test (after DM-6999).
An example log record from running unit tests directly. This is testPsfDetermination with log records from SingleFrameMeasurementTask (with its _DefaultName = "measurement")
master (from the default pex.logging LogFormatter):
measurement: Measuring 13 sources (13 parents, 0 children)
Switching to use lsst.log:
1055 [0x7fff732fb000] INFO measurement null - Measuring 13 sources (13 parents, 0 children)
With this ticket branch:
INFO measurement: Measuring 13 sources (13 parents, 0 children)
Jenkins for this ticket:
https://ci.lsst.codes/job/stack-os-matrix/compiler=gcc,label=centos-7,python=py2/13968//console
Jenkins with
DM-6999:https://ci.lsst.codes/job/stack-os-matrix/compiler=gcc,label=centos-7,python=py2/13964//console