public class HeaderFileHandler extends FileHandler
| Constructor and Description |
|---|
HeaderFileHandler()
Construct a default HeaderFileHandler.
|
HeaderFileHandler(String pattern)
Initialize a HeaderFileHandler to write to the given filename pattern.
|
HeaderFileHandler(String pattern,
boolean append)
Initialize a FileHandler to write to the given filename, with optional append.
|
HeaderFileHandler(String pattern,
int limit,
int count)
Initialize a FileHandler to write to a set of files.
|
| Modifier and Type | Method and Description |
|---|---|
void |
publish(LogRecord record)
Format and publish a LogRecord.
|
void |
setHeader(String header)
Set the optional header for the handler.
|
closeflush, isLoggable, setEncoding, setOutputStreamgetEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevelpublic HeaderFileHandler()
throws IOException,
SecurityException
IOException - if there are IO problems opening the files.SecurityException - if a security manager exists and if
the caller does not have LoggingPermission("control")).NullPointerException - if pattern property is an empty String.public HeaderFileHandler(String pattern) throws IOException, SecurityException
pattern - the patternIOException - if there are IO problems opening the files.SecurityException - if a security manager exists and if the caller does not
have LoggingPermission("control")public HeaderFileHandler(String pattern, boolean append) throws IOException, SecurityException
pattern - the patternIOException - if there are IO problems opening the files.SecurityException - if a security manager exists and if the caller does not
have LoggingPermission("control")public HeaderFileHandler(String pattern, int limit, int count) throws IOException, SecurityException
pattern - the pattern for naming the output filelimit - the maximum number of bytes to write to any one filecount - the number of files to useIOException - if there are IO problems opening the files.SecurityException - if a security manager exists and if the caller does not have
LoggingPermission("control")IllegalArgumentException - if limit < 0, or count < 1.public void setHeader(String header)
header - the headerpublic void publish(LogRecord record)
publish in class FileHandlerrecord - description of the log event