org.log5j.writer
Class RollingFileWriter

java.lang.Object
  extended by org.log5j.Writer
      extended by org.log5j.writer.RollingFileWriter

public final class RollingFileWriter
extends Writer

RollingFileWriter writes log messages to a file, and rolls the file either periodically or on the basis of file size.

RollingFileWriter recognises the following configuration properties;

Author:
Bruce Ashton

Constructor Summary
RollingFileWriter(Format format, java.util.Properties properties)
          Create a new RollingFileWriter.
 
Method Summary
 void write(java.lang.String message)
          Write a single message to the log.
 
Methods inherited from class org.log5j.Writer
getFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RollingFileWriter

public RollingFileWriter(Format format,
                         java.util.Properties properties)
                  throws java.io.IOException
Create a new RollingFileWriter.

Parameters:
format - the Format object for this RollingFileWriter
properties - configuration properties for this RollingFileWriter.
Throws:
java.io.IOException - if the file cannot be opened for writing
Method Detail

write

public void write(java.lang.String message)
Description copied from class: Writer
Write a single message to the log.

Specified by:
write in class Writer
Parameters:
message - the message to write