|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
org.x4juli.FileHandler
Implementation of Handler that appends log messages to a file named {prefix}.{date}.{suffix} in a configured directory, with an optional preceding timestamp.
| Field Summary | |
private java.lang.String |
date
Deprecated. The as-of date for the currently open log file, or a zero-length string if there is no open log file. |
private java.lang.String |
directory
Deprecated. The directory in which log files are created. |
private java.lang.String |
prefix
Deprecated. The prefix that is added to log file filenames. |
private java.lang.String |
suffix
Deprecated. The suffix that is added to log file filenames. |
private java.io.PrintWriter |
writer
Deprecated. The PrintWriter to which we are currently logging, if any. |
| Fields inherited from class java.util.logging.Handler |
|
| Constructor Summary | |
FileHandler()
Deprecated. |
|
FileHandler(java.lang.String directory,
java.lang.String prefix,
java.lang.String suffix)
Deprecated. |
|
| Method Summary | |
void |
close()
Deprecated. Close the currently open log file (if any). |
private void |
configure()
Deprecated. Configure from LogManager properties. |
void |
flush()
Deprecated. Flush the writer. |
private java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Deprecated. |
private void |
open()
Deprecated. Open the new log file for the date specified by date. |
void |
publish(java.util.logging.LogRecord record)
Deprecated. Format and publish a LogRecord. |
| Methods inherited from class java.util.logging.Handler |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String date
private java.lang.String directory
private java.lang.String prefix
private java.lang.String suffix
private java.io.PrintWriter writer
| Constructor Detail |
public FileHandler()
public FileHandler(java.lang.String directory,
java.lang.String prefix,
java.lang.String suffix)
| Method Detail |
public void publish(java.util.logging.LogRecord record)
record - description of the log eventpublic void close()
public void flush()
private void configure()
LogManager properties.
private java.lang.String getProperty(java.lang.String name,
java.lang.String defaultValue)
private void open()
date.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||