net.sf.jaxodraw.logging
Class JaxoFileHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by java.util.logging.StreamHandler
          extended by java.util.logging.FileHandler
              extended by net.sf.jaxodraw.logging.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 Summary
JaxoFileHandler(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.


Copyright © 2003-2011 The JaxoDraw team. All Rights Reserved.