Package net.sf.jaxodraw.logging
Class JaxoFileHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- java.util.logging.StreamHandler
-
- java.util.logging.FileHandler
-
- net.sf.jaxodraw.logging.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.StreamHandler
flush, isLoggable, setEncoding, setOutputStream
-
-
-
-
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.
-
-