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
File implementation of JaxoLogger.
Uses a FileHandler, ie logs are written to a log file.
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionJaxoFileHandler
(String logDir) Constructor.JaxoFileHandler
(String logDir, String pattern) Constructor.JaxoFileHandler
(String logDir, String pattern, int limit) Constructor.JaxoFileHandler
(String logDir, 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
-
Constructor Details
-
JaxoFileHandler
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
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
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
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.
-