|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.logging.Handler
org.apache.juli.FileHandler
public class 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 | |
|---|---|
protected ReadWriteLock |
writerLock
Lock used to control access to the writer. |
| Constructor Summary | |
|---|---|
FileHandler()
|
|
FileHandler(String directory,
String prefix,
String suffix)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the currently open log file (if any). |
protected void |
closeWriter()
|
void |
flush()
Flush the writer. |
protected void |
open()
Open the new log file for the date specified by date. |
protected void |
openWriter()
|
void |
publish(LogRecord record)
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 |
|---|
protected ReadWriteLock writerLock
| Constructor Detail |
|---|
public FileHandler()
public FileHandler(String directory,
String prefix,
String suffix)
| Method Detail |
|---|
public void publish(LogRecord record)
publish in class Handlerrecord - description of the log eventpublic void close()
close in class Handlerprotected void closeWriter()
public void flush()
flush in class Handlerprotected void open()
date.
protected void openWriter()
|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||