This content has been marked as final.
Show 3 replies
-
1. Re: JBoss' org.jboss.logging.appender.DailyRollingFileAppend
starksm64 May 5, 2004 12:00 PM (in response to jonathanztaub)The only behavior the jboss version adds is to create the path to the log file if it does not exist.
public class DailyRollingFileAppender extends org.apache.log4j.DailyRollingFileAppender { public void setFile(final String filename) { FileAppender.Helper.makePath(filename); super.setFile(filename); } }
-
2. Re: JBoss' org.jboss.logging.appender.DailyRollingFileAppend
jonathanztaub May 6, 2004 7:15 AM (in response to jonathanztaub)My solution to the problem was to change the appender to a plain "FileAppender" with "MaxFileSize" set to an arbitrary value and "MaxBackupIndex" set to zero which will cause the file to get truncated when it reaches its maximum size and then writing again to the file.
Although each time the process which write to the file begins, the file gets truncated and all previous information is discarded. -
3. Re: JBoss' org.jboss.logging.appender.DailyRollingFileAppend
miffel Sep 8, 2004 6:50 AM (in response to jonathanztaub)Try to use the Append=true setting in log4j.xml.