imx.loggui.handler
Class ConfigurableFileHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by imx.loggui.handler.SerializableHandler
          extended by 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

Constructor Summary
ConfigurableFileHandler()
           
 
Method Summary
 void close()
           
 void flush()
           
 int getCount()
           
 int getLimit()
           
 java.lang.String getPattern()
           
 boolean isAppend()
           
 void open()
          Opens the FileHandler and propagates all properties.
 void publish(java.util.logging.LogRecord record)
          This method will try to open the fileHandler, if it is still closed.
 void setAppend(boolean b)
           
 void setCount(int i)
           
 void setLimit(int i)
           
 void setPattern(java.lang.String string)
           
 
Methods inherited from class imx.loggui.handler.SerializableHandler
getName, setFormatter, setLevel, setName, toString
 
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
 

Constructor Detail

ConfigurableFileHandler

public ConfigurableFileHandler()
Method Detail

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)