Ableverse™
Platform 6.0

av.msg.logging
Class FileHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by java.util.logging.StreamHandler
          extended by av.msg.logging.FileHandler

public class FileHandler
extends StreamHandler

Write log records to local files, support configuration by the following properties:

append: default = true
Accepts boolean values to specify whether append to the specified file.

It should appear before the file property to take effect.

Note: if the file property contains %u, new files will always be created without appending to existing files.

file: no default value, must be specified.
A pattern consists of a string that includes the following special components that will be replaced at runtime:
autoFlush: default = false
Accepts boolean values to specify whether automatically flush the file stream on each log record.

Author:
Compl

Constructor Summary
FileHandler()
           
 
Method Summary
protected  File generateFile(String pattern)
           
 boolean isAppend()
           
 boolean isAutoFlush()
           
 void publish(LogRecord record)
           
 void setAppend(boolean append)
           
 void setAutoFlush(boolean autoFlush)
           
 void setFile(String filePattern)
           
 
Methods inherited from class java.util.logging.StreamHandler
close, 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

FileHandler

public FileHandler()
Method Detail

isAppend

public boolean isAppend()

setAppend

public void setAppend(boolean append)

setFile

public void setFile(String filePattern)

isAutoFlush

public boolean isAutoFlush()

setAutoFlush

public void setAutoFlush(boolean autoFlush)

publish

public void publish(LogRecord record)
Overrides:
publish in class StreamHandler

generateFile

protected File generateFile(String pattern)

Ableverse™
Platform 6.0

Copyright© 2006 Ableverse Platform. All rights reserved.