public class FileHandler
extends java.util.logging.FileHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
pattern
Specifies a pattern for generating the output file name.
|
Constructor and Description |
---|
FileHandler()
Construct a default FileHandler.
|
FileHandler(java.lang.String pattern,
int limit,
int count)
Initialize a FileHandler to write to a set of files.
|
flush, isLoggable, setEncoding, setOutputStream
public static java.lang.String pattern
The field is public so that our Logger could reset it if necessary.
public FileHandler(java.lang.String pattern, int limit, int count) throws java.io.IOException, java.lang.SecurityException
The FileHandler is configured based on LogManager properties (or their default values) except that the given pattern argument is used as the filename pattern, the file limit is set to the limit argument, and the file count is set to the given count argument.
The count must be at least 1.
pattern
- the pattern for naming the output filelimit
- the maximum number of bytes to write to any one filecount
- the number of files to usejava.io.IOException
- if there are IO problems opening the files.java.lang.SecurityException
- if a security manager exists and if
the caller does not have LoggingPermission("control").java.lang.IllegalArgumentException
- if limit < 0, or count < 1.java.lang.IllegalArgumentException
- if pattern is an empty stringpublic FileHandler() throws java.io.IOException, java.lang.SecurityException
java.io.IOException
- if there are IO problems opening the files.java.lang.SecurityException
- if a security manager exists and if
the caller does not have LoggingPermission("control")).java.lang.NullPointerException
- if pattern property is an empty String.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.