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.AsyncOverflowDropType Default value: 1org.apache.juli.AsyncMaxRecordCount Default value: 10000See the System Properties page in the configuration reference of Tomcat.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| protected volatile boolean | |
| private final Object | |
| public static final int | |
| public static final int | |
| private static final AsyncFileHandler. | |
| private final AsyncFileHandler. | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| pack-priv static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| pack-priv | AsyncFileHandler(String directory, String prefix, String suffix, Integer maxDays, AsyncFileHandler.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | open()
Overrides org. Open the new log file for the date specified by |
| public void | publish(LogRecord
description of the log event record)Overrides org. Format and publish a |
| protected void |
| closed | back to summary |
|---|---|
| protected volatile boolean closed | |
| closeLock | back to summary |
|---|---|
| private final Object closeLock | |
| DEFAULT_MAX_RECORDS | back to summary |
|---|---|
| public static final int DEFAULT_MAX_RECORDS | |
| DEFAULT_OVERFLOW_DROP_TYPE | back to summary |
|---|---|
| public static final int DEFAULT_OVERFLOW_DROP_TYPE | |
| LOGGER_SERVICE | back to summary |
|---|---|
| private static final AsyncFileHandler. | |
| loggerService | back to summary |
|---|---|
| private final AsyncFileHandler. | |
| MAX_RECORDS | back to summary |
|---|---|
| public static final int MAX_RECORDS | |
| OVERFLOW_DROP_CURRENT | back to summary |
|---|---|
| public static final int OVERFLOW_DROP_CURRENT | |
| OVERFLOW_DROP_FIRST | back to summary |
|---|---|
| public static final int OVERFLOW_DROP_FIRST | |
| OVERFLOW_DROP_FLUSH | back to summary |
|---|---|
| public static final int OVERFLOW_DROP_FLUSH | |
| OVERFLOW_DROP_LAST | back to summary |
|---|---|
| public static final int OVERFLOW_DROP_LAST | |
| OVERFLOW_DROP_TYPE | back to summary |
|---|---|
| public static final int OVERFLOW_DROP_TYPE | |
| THREAD_PREFIX | back to summary |
|---|---|
| pack-priv static final String THREAD_PREFIX | |
| AsyncFileHandler | back to summary |
|---|---|
| public AsyncFileHandler() | |
| AsyncFileHandler | back to summary |
|---|---|
| public AsyncFileHandler(String directory, String prefix, String suffix) | |
| AsyncFileHandler | back to summary |
|---|---|
| public AsyncFileHandler(String directory, String prefix, String suffix, Integer maxDays) | |
| AsyncFileHandler | back to summary |
|---|---|
| pack-priv AsyncFileHandler(String directory, String prefix, String suffix, Integer maxDays, AsyncFileHandler. | |
| close | back to summary |
|---|---|
| public void close() Overrides org. Doc from org. Close the currently open log file (if any).
| |
| open | back to summary |
|---|---|
| public void open() Overrides org. Doc from org. Open the new log file for the date specified by
| |
| publish | back to summary |
|---|---|
| public void publish(LogRecord record) Overrides org. Doc from org. Format and publish a | |
| publishInternal | back to summary |
|---|---|
| protected void publishInternal(LogRecord record) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | rejectedExecution(Runnable
the runnable task requested to be executed r, ThreadPoolExecutor the executor attempting to execute this task executor)Implements java. Method that may be invoked by a |
| DropFlushPolicy | back to summary |
|---|---|
| private DropFlushPolicy() | |
| rejectedExecution | back to summary |
|---|---|
| public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) Implements java. Doc from java. Method that may be invoked by a In the absence of other alternatives, the method may throw
an unchecked
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | rejectedExecution(Runnable
the runnable task requested to be executed r, ThreadPoolExecutor the executor attempting to execute this task executor)Implements java. Method that may be invoked by a |
| DropLastPolicy | back to summary |
|---|---|
| private DropLastPolicy() | |
| rejectedExecution | back to summary |
|---|---|
| public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) Implements java. Doc from java. Method that may be invoked by a In the absence of other alternatives, the method may throw
an unchecked
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicInteger | |
| private static final FileHandler. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public LinkedBlockingDeque | getQueue()
Overrides java. Returns the task queue used by this executor. |
| public void |
| handlerCount | back to summary |
|---|---|
| private final AtomicInteger handlerCount | |
| THREAD_FACTORY | back to summary |
|---|---|
| private static final FileHandler. | |
| LoggerExecutorService | back to summary |
|---|---|
| pack-priv LoggerExecutorService(final int overflowDropType, final int maxRecords) | |
| deregisterHandler | back to summary |
|---|---|
| public void deregisterHandler() | |
| getQueue | back to summary |
|---|---|
| public LinkedBlockingDeque Overrides java. Doc from java. Returns the task queue used by this executor. Access to the task queue is intended primarily for debugging and monitoring. This queue may be in active use. Retrieving the task queue does not prevent queued tasks from executing.
| |
| registerHandler | back to summary |
|---|---|
| public void registerHandler() | |