logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Horry, Adam J" <adam.j.ho...@lmco.com>
Subject RE: append getting set to false with RollingFileAppender
Date Fri, 06 Aug 2004 19:32:24 GMT
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; log4j-user@jakarta.apache.org
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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message