[jboss-user] [Beginner's Corner] - Re: How to set the Jboss server to truncate the log file contents back to 0 when it is restarted

Peter Johnson do-not-reply at jboss.com
Wed Jan 16 21:33:12 EST 2013


Peter Johnson [https://community.jboss.org/people/peterj] created the discussion

"Re: How to set the Jboss server to truncate the log file contents back to 0 when it is restarted"

To view the discussion, visit: https://community.jboss.org/message/792478#792478

--------------------------------------------------------------
I'm going to make a guess that you are running Linux, that you run JBoss AS as a service (which version are you running) and that the stderrwfc.log file is the redirected stdout or stderr file. That file is not governed by log4j, instead it is just redirected output. There is no way to limit the size of that file. Your options are to

a) occasionally restart the JBoss AS service and between the stop and start, either delete or move the file. 

or 

b) Change your service init script to not redirect stdout and stderr. You don't really need them, any console log output already appears in server.log, or you could easily replace the console log with a rotating file logger.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792478#792478]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130116/63fdbdff/attachment.html 


More information about the jboss-user mailing list