Yes, you can. Don't forget to call activateOptions() at the end of 
reconfiguring. You need not to restart the app.
Heri

> -----Original Message-----
> From: vincentw [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 11, 2006 7:06 PM
> To: [email protected]
> Subject: [SPAM (Bayesain Analysis)] - Re: Can I change log4j
> configuration programatically? - Bayesian Filter detected spam
> 
> 
> 
> Well, I use DOMConfigurator initially, but what about when 
> the program is
> running?? 
> 
> I would like to set a new root level or a log file size.  Can 
> I do something
> like
> 
> Logger.getRootLogger.setLevel
> 
> or something like that?  If I do it this way do I have to 
> stop and restart
> the logger?
> 
> 
> James Stauffer wrote:
> > 
> > A stand-alone Java application could use
> > DOMConfigurator.configureAndWatch (but don't allow it to do 
> automatic
> > configuration).
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Can-I-change-log4j-configuration-program
> atically--tf2420301.html#a6760580
> Sent from the Log4j - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to