Class JaxoFileHandler


public final class JaxoFileHandler extends FileHandler
File implementation of JaxoLogger. Uses a FileHandler, ie logs are written to a log file.
Since:
2.0
  • Constructor Details

    • JaxoFileHandler

      public JaxoFileHandler(String logDir, String pattern, int limit, int logFiles) throws IOException
      Constructor.
      Parameters:
      logDir - The directory where log files will be stored. This directory has to exist!
      pattern - the pattern for naming the output file.
      limit - limit the maximum number of bytes to write to any one file.
      logFiles - the number of files to use.
      Throws:
      IOException - if there are IO problems opening the files.
    • JaxoFileHandler

      public JaxoFileHandler(String logDir) throws IOException
      Constructor.
      Parameters:
      logDir - The directory where log files will be stored. This directory has to exist!
      Throws:
      IOException - if there are IO problems opening the files.
    • JaxoFileHandler

      public JaxoFileHandler(String logDir, String pattern) throws IOException
      Constructor.
      Parameters:
      logDir - The directory where log files will be stored. This directory has to exist!
      pattern - the pattern for naming the output file.
      Throws:
      IOException - if there are IO problems opening the files.
    • JaxoFileHandler

      public JaxoFileHandler(String logDir, String pattern, int limit) throws IOException
      Constructor.
      Parameters:
      logDir - The directory where log files will be stored. This directory has to exist!
      pattern - the pattern for naming the output file.
      limit - the maximum number of bytes to write to any one file.
      Throws:
      IOException - if there are IO problems opening the files.