Digging into the code.
RollingFileAppender.java
void rollOver() {
...
<at the very end>
...
try {
// This will also close the file. This is OK since multiple
// close operations are safe.
this.setFile( fileName, false, bufferedIO, bufferSize);
}
catch ...
}
Looking at the code, not sure I understand why the this.setFile()
is being called with append as false.
Adam
-----Original Message-----
From: Horry, Adam J
Sent: Friday, August 06, 2004 3:04 PM
To: Log4J Users List; [EMAIL PROTECTED]
Subject: append getting set to false with RollingFileAppender
I am using a RollingFileAppender.
When the file rolls over, the new file is not being appended.
I put code in to trace what was happening in the setFile
method of the RollingFileAppender. The getAppend( ) method printed out
true (as defaulted) but after the rollOver( ) method was called the
getAppend( ) method returned false.
Any idea why the append value would get set to false upon rollover?
Thanks,
Adam Horry
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]