Package adams.core.logging
Class RotatingFileHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- adams.core.logging.AbstractLogHandler
-
- adams.core.logging.FileHandler
-
- adams.core.logging.RotatingFileHandler
-
- All Implemented Interfaces:
Comparable<Handler>
public class RotatingFileHandler extends FileHandler
Allows for rotating log files.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]
m_RotatingExtensions
the extensions for the rotating logs (incl dots).-
Fields inherited from class adams.core.logging.FileHandler
ADAMS_LOGFILE_PREFIX, m_LogFile, m_LogIsDir
-
Fields inherited from class adams.core.logging.AbstractLogHandler
m_LoggingListeners, m_LogUsed
-
-
Constructor Summary
Constructors Constructor Description RotatingFileHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getRotatingExtensions()
Returns the extensions in use for the rotating logs.protected void
initialize()
Initializes the members.void
setRotatingExtensions(String[] value)
Sets the extensions to use for the rotating logs.protected void
setUp()
Hook method for performing setup before processing first log record.-
Methods inherited from class adams.core.logging.FileHandler
compareTo, doPublish, getLogFile, setLogFile
-
Methods inherited from class adams.core.logging.AbstractLogHandler
addLoggingListener, close, equals, flush, iterator, loggingListeners, notifyLoggingListeners, postPublish, publish, removeLoggingListener, removeLoggingListeners, reset
-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Field Detail
-
m_RotatingExtensions
protected String[] m_RotatingExtensions
the extensions for the rotating logs (incl dots).
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classFileHandler
-
setRotatingExtensions
public void setRotatingExtensions(String[] value)
Sets the extensions to use for the rotating logs.- Parameters:
value
- the extensions (incl. dots)
-
getRotatingExtensions
public String[] getRotatingExtensions()
Returns the extensions in use for the rotating logs.- Returns:
- the extensions (incl dots)
-
setUp
protected void setUp()
Hook method for performing setup before processing first log record.- Overrides:
setUp
in classFileHandler
-
-