Package 

Class FileHandler


  • 
    class FileHandler
    extends FileHandler
                        

    Simple file logging Handler. Extends java.util.logging.FileHandler and adds the special component to the file pattern - %s which is replaced at runtime with sip-communicator's home directory. If the pattern option is missing creates log directory in sip-communicator's home directory. If the directory is missing create it.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String pattern
    • Constructor Summary

      Constructors 
      Constructor Description
      FileHandler(String pattern, int limit, int count) Initialize a FileHandler to write to a set of files.
      FileHandler() Construct a default FileHandler.
    • Method Summary

      Modifier and Type Method Description
      static String getPattern() Substitute %s in the pattern and creates the directory if it doesn't exist.
      • Methods inherited from class java.util.logging.FileHandler

        close, configure, generate, isParentWritable, isSetUID, open, openFiles, publish, rotate
      • Methods inherited from class java.util.logging.StreamHandler

        flush, flushAndClose, isLoggable, setEncoding, setOutputStream
      • Methods inherited from class java.util.logging.Handler

        checkPermission, 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

      • FileHandler

        FileHandler(String pattern, int limit, int count)
        Initialize a FileHandler to write to a set of files.
        Parameters:
        pattern - the pattern for naming the output file
        limit - the maximum number of bytes to write to any one file
        count - the number of files to use
      • FileHandler

        FileHandler()
        Construct a default FileHandler.
    • Method Detail

      • getPattern

         static String getPattern()

        Substitute %s in the pattern and creates the directory if it doesn't exist.