Using configureAndWatch you can just change the file and it will
update based on the changes.

On 10/11/06, vincentw <[EMAIL PROTECTED]> wrote:

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-programatically--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]




--
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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

Reply via email to