org.log5j.writer
Class FileWriter

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

public final class FileWriter
extends Writer

FileWriter writes log messages to a file.

FileWriter recognises two configuration properties;

Author:
Bruce Ashton

Constructor Summary
FileWriter(Format format, java.util.Properties properties)
          Create a new FileWriter.
 
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

FileWriter

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

Parameters:
format - the Format object for this FileWriter
properties - configuration properties for this FileWriter
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