Forums Register Login

Reconfigure SLF4J during runtime

+Pie Number of slices to send: Send
It would be useful to be able to re-configure logging in a web app during runtime, without restarting, re-depoying or re-initialization.

It appears that you can change this in log4j simply by:


However, I also run slf4j on top of log4j, and this has no effect. I guess that slf4j doesn't get notified of the change.
Has anyone tried this? Is there a way to do this in slf4j, or to tell slf4j to re-load the settings from log4j?


You get good luck from rubbing the belly of a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1256 times.
Similar Threads
create log file
General uneasy feeling about java logging...... or maybe it's just too much eggnog
log4j with Applet
ClassNotFound
Choosing the right logger
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:21:59.