Package org.apache.juli
Class AsyncFileHandler
java.lang.Object
java.util.logging.Handler
org.apache.juli.FileHandler
org.apache.juli.AsyncFileHandler
A 
FileHandler implementation that uses a queue of log entries.
 
 Configuration properties are inherited from the FileHandler class. This class does not add its own
 configuration properties for the logging configuration, but relies on the following system properties instead:
 
- org.apache.juli.AsyncOverflowDropTypeDefault value:- 1
- org.apache.juli.AsyncMaxRecordCountDefault value:- 10000
See the System Properties page in the configuration reference of Tomcat.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.juli.FileHandlerFileHandler.ThreadFactory
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class org.apache.juli.FileHandlerDEFAULT_BUFFER_SIZE, DEFAULT_MAX_DAYS, writerLock
- 
Constructor SummaryConstructorsConstructorDescriptionAsyncFileHandler(String directory, String prefix, String suffix) AsyncFileHandler(String directory, String prefix, String suffix, Integer maxDays) 
- 
Method SummaryMethods inherited from class org.apache.juli.FileHandlercloseWriter, flush, openWriterMethods inherited from class java.util.logging.HandlergetEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
- 
Field Details- 
OVERFLOW_DROP_LASTpublic static final int OVERFLOW_DROP_LAST- See Also:
 
- 
OVERFLOW_DROP_FIRSTpublic static final int OVERFLOW_DROP_FIRST- See Also:
 
- 
OVERFLOW_DROP_FLUSHpublic static final int OVERFLOW_DROP_FLUSH- See Also:
 
- 
OVERFLOW_DROP_CURRENTpublic static final int OVERFLOW_DROP_CURRENT- See Also:
 
- 
DEFAULT_OVERFLOW_DROP_TYPEpublic static final int DEFAULT_OVERFLOW_DROP_TYPE- See Also:
 
- 
DEFAULT_MAX_RECORDSpublic static final int DEFAULT_MAX_RECORDS- See Also:
 
- 
OVERFLOW_DROP_TYPEpublic static final int OVERFLOW_DROP_TYPE
- 
MAX_RECORDSpublic static final int MAX_RECORDS
- 
closedprotected volatile boolean closed
 
- 
- 
Constructor Details- 
AsyncFileHandlerpublic AsyncFileHandler()
- 
AsyncFileHandler
- 
AsyncFileHandler
 
- 
- 
Method Details- 
closepublic void close()Description copied from class:FileHandlerClose the currently open log file (if any).- Overrides:
- closein class- FileHandler
 
- 
openpublic void open()Description copied from class:FileHandlerOpen the new log file for the date specified bydate.- Overrides:
- openin class- FileHandler
 
- 
publishDescription copied from class:FileHandlerFormat and publish aLogRecord.- Overrides:
- publishin class- FileHandler
- Parameters:
- record- description of the log event
 
- 
publishInternal
 
-