Class JaxoFileHandler


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

      Constructors 
      Constructor Description
      JaxoFileHandler​(java.lang.String logDir)
      Constructor.
      JaxoFileHandler​(java.lang.String logDir, java.lang.String pattern)
      Constructor.
      JaxoFileHandler​(java.lang.String logDir, java.lang.String pattern, int limit)
      Constructor.
      JaxoFileHandler​(java.lang.String logDir, java.lang.String pattern, int limit, int logFiles)
      Constructor.
    • Method Summary

      • Methods inherited from class java.util.logging.FileHandler

        close, publish
      • Methods inherited from class java.util.logging.StreamHandler

        flush, isLoggable, setEncoding, setOutputStream
      • Methods inherited from class java.util.logging.Handler

        getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JaxoFileHandler

        public JaxoFileHandler​(java.lang.String logDir,
                               java.lang.String pattern,
                               int limit,
                               int logFiles)
                        throws java.io.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:
        java.io.IOException - if there are IO problems opening the files.
      • JaxoFileHandler

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

        public JaxoFileHandler​(java.lang.String logDir,
                               java.lang.String pattern)
                        throws java.io.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:
        java.io.IOException - if there are IO problems opening the files.
      • JaxoFileHandler

        public JaxoFileHandler​(java.lang.String logDir,
                               java.lang.String pattern,
                               int limit)
                        throws java.io.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:
        java.io.IOException - if there are IO problems opening the files.