imx.loggui.handler
Class ConfigurableFileHandler
java.lang.Object
java.util.logging.Handler
imx.loggui.handler.SerializableHandler
imx.loggui.handler.ConfigurableFileHandler
- All Implemented Interfaces:
- NameInterface, java.io.Serializable
public class ConfigurableFileHandler
- extends SerializableHandler
- implements java.io.Serializable
This class wraps FileHandler, so that it can be serialized
and reloaded.
After properties have been changed, open() must be called. Otherwise
the changes will have no effect. For the pattern property apply the same formatting
rules as for FileHandler.
- See Also:
ConfigurableFileView,
Serialized Form
| Methods inherited from class java.util.logging.Handler |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setEncoding, setErrorManager, setFilter |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConfigurableFileHandler
public ConfigurableFileHandler()
close
public void close()
throws java.lang.SecurityException
- Specified by:
close in class java.util.logging.Handler
- Throws:
java.lang.SecurityException
flush
public void flush()
- Specified by:
flush in class java.util.logging.Handler
publish
public void publish(java.util.logging.LogRecord record)
- This method will try to open the fileHandler, if it is still closed.
- Specified by:
publish in class java.util.logging.Handler
open
public void open()
throws java.io.IOException
- Opens the FileHandler and propagates all properties.
- Throws:
java.io.IOException
isAppend
public boolean isAppend()
getCount
public int getCount()
getLimit
public int getLimit()
getPattern
public java.lang.String getPattern()
setAppend
public void setAppend(boolean b)
setCount
public void setCount(int i)
setLimit
public void setLimit(int i)
setPattern
public void setPattern(java.lang.String string)