Details
Description
Currently, to configure a "log listener" requires overriding the default log configuration. We should be able to "plug in" to a logger without changing how any other logger is configured.
An example that would send everything logged to example.somelog to somefile.log, without changing any other logging could be as follows:
lsst.log.configure_append(""" |
log4j.logger.example.somelog=TRACE, B1
|
log4j.appender.B1=FileAppender
|
log4j.appender.B1.File=somefile.log
|
log4j.appender.B1.layout=PatternLayout
|
log4j.appender.B1.layout.ConversionPattern=%m%n
|
""" |
Attachments
Issue Links
- mentioned in
-
Page Loading...