This content has been marked as final.
Show 3 replies
-
1. Re: rotate logs while jboss is running
jaikiran Jul 24, 2006 1:43 AM (in response to peter74)Is it possible to rotate the jboss logs, without restarting jboss?
Just touch the log4j.xml file(so that its last modified timestamp changes) and save the same. There is a Log4jTimerTask which will run every 60 seconds and it will pick up the changes. You will *not* have to restart the server -
2. Re: rotate logs while jboss is running
peter74 Jul 24, 2006 9:30 AM (in response to peter74)
Thanks Jaikiran,
But I didn't quite understand by 'save the same', you just need to touch the file right. No changed on the server.log right?
Just touch the log4j.xml file(so that its last modified timestamp changes) andsave the same
. -
3. Re: rotate logs while jboss is running
jaikiran Jul 24, 2006 9:35 AM (in response to peter74)I meant, open the log4j.xml in a text editor and just do a save(you need not do any changes to the contents of the file). This will change the last modified time of the log4j.xml file and the Log4jTimerTask will pick up this change(in its next scheduled interval of 60 seconds)