public class FileLogWriter extends StreamLogWriter
Constructor and Description |
---|
FileLogWriter(java.io.File file)
Create a file log writer and open it for writing.
|
FileLogWriter(java.lang.String name)
Create a file log writer and open it for writing.
|
close, write
writeRecord
public FileLogWriter(java.lang.String name) throws java.io.IOException, LogException
name
- The name of the file to write to.java.io.IOException
- If the log file cannot be opened.LogException
- If the log cannot be written.public FileLogWriter(java.io.File file) throws java.io.IOException, LogException
file
- The file to write to.java.io.IOException
- If the log file cannot be opened.LogException
- If the log cannot be written.