logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander <the.malk...@gmail.com>
Subject Re: Changing log level without restarting app server
Date Thu, 13 Aug 2009 14:36:33 GMT
Strange [?] Last time I used log4j it works fine this way.
Its even described there #11 How can I change log behavior at
runtime?<http://logging.apache.org/log4j/1.2/faq.html#2.2>

2009/8/13 AL <annielaney@gmail.com>

> Hey everyone,
>
> I have a J2EE app using EJB 2.1, Struts 1 and Hibernate, running on JBoss
> 4.2.3 and want to be able to modify various properties in log4j.properties
> without having to restart the app server, e.g. Change the log level from
> info to debug.
>
> What's the best way to get this set up?Should it be done in a servlet upon
> application startup? I've googled this but haven't found a definitive best
> practice solution. I've tried configure and watch but it throws exceptions
> when I change the log level and save the file..
>
> Thanks for any help!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
Regards,
Alexander

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message