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
An appender writing log entries to Files.
Author:
Pier Fumagalli, USRZ.com
  • Constructor Details

    • FileAppender

      public FileAppender(File file) throws IOException
      Create a new FileAppender appending to (and not overwriting) the specified File.
      Throws:
      IOException - If an I/O error occurred opening the file.
    • FileAppender

      public FileAppender(File file, boolean append) throws IOException
      Create a new FileAppender writing to the specified File.
      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.