av.msg.logging
Class FileHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
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:
-
%t the system temporary directory
-
%h the value of the "user.home" system property
-
%u a unique number to resolve conflicts
-
%% translates to a single percent sign "%"
autoFlush: default = false
- Accepts boolean values to specify whether automatically flush the file
stream on each log record.
- Author:
- Compl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileHandler
public FileHandler()
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)
Copyright© 2006 Ableverse Platform. All rights reserved.