|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.FileHandler
net.java.sip.communicator.util.FileHandler
public class 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 | |
|---|---|
static String |
pattern
Specifies a pattern for generating the output file name. |
| Constructor Summary | |
|---|---|
FileHandler()
Construct a default FileHandler. |
|
FileHandler(String pattern,
int limit,
int count)
Initialize a FileHandler to write to a set of files. |
|
| Method Summary |
|---|
| Methods inherited from class java.util.logging.FileHandler |
|---|
close, publish |
| Methods inherited from class java.util.logging.StreamHandler |
|---|
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 |
| Field Detail |
|---|
public static String pattern
The field is public so that our Logger could reset it if necessary.
| Constructor Detail |
|---|
public FileHandler(String pattern,
int limit,
int count)
throws IOException,
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 use
IOException - 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.
IllegalArgumentException - if pattern is an empty string
public FileHandler()
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.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||