| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.log5j.Writer
org.log5j.writer.FileWriter
public final class FileWriter
FileWriter writes log messages to a file.
 
 FileWriter recognises two configuration properties;
 
append: If true, append messages to the end of the file
 if it exists already; Over-write any existing file if false. The rules for
 setting the value of append are those of the
 Boolean.valueOf(String) method.filename: The name of the file to write to. If filename
 is not an absolute path, It will be relative to the runtime directory of the
 JVM.
| 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 | 
|---|
public FileWriter(Format format,
                  java.util.Properties properties)
           throws java.io.IOException
FileWriter.
format - the Format object for this
            FileWriterproperties - configuration properties for this
            FileWriter
java.io.IOException - if the file cannot be opened for writing| Method Detail | 
|---|
public void write(java.lang.String message)
Writer
write in class Writermessage - the message to write| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||