This content has been marked as final.
Show 2 replies
-
1. Re: How to set log level at runtime
milowe Apr 14, 2005 4:35 AM (in response to yangju)You can change the prority (debug lvl) for your different categories at run-time in log4j.xml. This file is periodically scanned for updates.
-
2. Re: How to set log level at runtime
sharris Apr 14, 2005 9:26 AM (in response to yangju)If you want to do it in code, you can define a Logger for each service, get these Loggers using the static Logger.getLoger(name) method and then setLevel(level) on the Logger instanaces. See the log4j API for details.