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