[logback-user] Advice for dynamically adding loggers
Norbert Kiesel
nkiesel at MetricStream.com
Wed Dec 9 06:28:38 CET 2020
Hi,
I want to dynamically add (and eventually remove again) loggers to a system. The idea is that based on specific events (e.g. a flag in a HTTP REST request header), the logs for this request are written to a separate file (in addition to writing to the usual log file). I also want to modify the log-level for this request to TRACE - ideally just for the messages written to the dedicated log file. Is configuring a SiftingAppender the correct approach for that? And does anyone have some sample code they could share? Any help/feedback is greatly appreciated!
</nk>
---
Norbert Kiesel
Systems Architect, Engineering
E: nkiesel at metricstream.com<mailto:sonia.sharma at metricstream.com>
W: www.metricstream.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20201209/a6677c53/attachment.html>
More information about the logback-user
mailing list