>From RotatingFileTarget: /** * Rote the file - ?? explination needed. * @exception IOException if a file related error occurs * @exception IOException if a file access or write related error occurs */ protected synchronized void rotate() throws IOException { close();
final File file = m_fileStrategy.nextFile(); setFile( file, m_append ); openFile(); } /** * Output the log message, and check if rotation is needed. * @param data the date to write to the target */ protected synchronized void write( final String data ) { // if rotation is needed, close old File, create new File if( m_rotateStrategy.isRotationNeeded( data, getFile() ) ) { try { rotate(); } catch( final IOException ioe ) { getErrorHandler().error( "Error rotating file", ioe, null ); } } // write the log message super.write( data ); } m_rotateStrategy.reset() is never called. The RotateStrategyBySize is self-resetting, so this bug never happens with it, but the RotateStrategyByDate isn't. /LS --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]