Dynamically Changing Log4j or logback log levels in Java (prefab.cloud) 3 points by jdwyah 2y ago ↗ HN
[–] jdwyah 2y ago ↗ You might want to change the log level dynamically to get more debug information without restarting, or more easily turn off logging to save money.In either case, this breaks down into a 2 part problem.1. Capture the user intent to change the log level 2. Propagate this message to the instances of your serviceThere are a number of good options for doing both of these and this goes into the choices.
1 comment
[ 3.8 ms ] story [ 30.6 ms ] threadIn either case, this breaks down into a 2 part problem.
1. Capture the user intent to change the log level 2. Propagate this message to the instances of your service
There are a number of good options for doing both of these and this goes into the choices.