File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes Unable to split log files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Unable to split log files" Watch "Unable to split log files" New topic
Author

Unable to split log files

Mats Nilsson
Greenhorn

Joined: Jan 22, 2009
Posts: 1
Hello!

First, hi all. I'm a newbie both to Jboss and to this forum.

I'm trying to tell Jboss to split my logfiles in order to get more managable sizes, but with no luck. In my jboss-log4j.xml i have both the DailyRollingFileAppender

and then the RollingFileAppender:


But it won't split at 5MB! I tried disabling the first (the daily one), but still no luck. I also tried renaming the =${jboss.server.log.dir}/server.log" just to se that the log file got the new name, i.e. that the xml-tag is read and it was. Hence my question, why doesn't my log file split at 5MB? What am i overlooking/missing?

Thanks in advance

/Mats
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5528

You cannot have two appenders with the same name, if you do, one of them will not take. Delete the one defined as DailyRollingFileAppender.

We cover this exact topic in the book in section 2.2.1.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to split log files
 
Similar Threads
Avoid additional server.log debug lines
How to monitor log file in jboss for sending mails,when error or excetion found in log
how to set log file path in log4j.xml
getting errors I can't explain...anyone can help out ?
server.log doesn't save MaxBackupIndex= "5"