Class FileAppender
- java.lang.Object
-
- org.glassfish.grizzly.http.server.accesslog.StreamAppender
-
- org.glassfish.grizzly.http.server.accesslog.FileAppender
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,AccessLogAppender
public class FileAppender extends StreamAppender
Anappenderwriting log entries toFiles.- Author:
- Pier Fumagalli, USRZ.com
-
-
Constructor Summary
Constructors Constructor Description FileAppender(java.io.File file)Create a newFileAppenderappending to (and not overwriting) the specifiedFile.FileAppender(java.io.File file, boolean append)Create a newFileAppenderwriting to the specifiedFile.
-
Method Summary
-
Methods inherited from class org.glassfish.grizzly.http.server.accesslog.StreamAppender
append, close
-
-
-
-
Constructor Detail
-
FileAppender
public FileAppender(java.io.File file) throws java.io.IOExceptionCreate a newFileAppenderappending to (and not overwriting) the specifiedFile.- Throws:
java.io.IOException- If an I/O error occurred opening the file.
-
FileAppender
public FileAppender(java.io.File file, boolean append) throws java.io.IOExceptionCreate a newFileAppenderwriting to the specifiedFile.- Parameters:
append- If true the file will be appended to, otherwise it will be completely overwritten.- Throws:
java.io.IOException- If an I/O error occurred opening the file.
-
-