Parameter
|
Environment Variable
|
Base Type
|
Default
|
Description
|
---|---|---|---|---|
queueSize
|
different for each AsyncAppender; see table below
|
INTEGER
|
256
|
The maximum capacity of the blocking queue. This value is used during the creation of the AsyncAppender and cannot be changed. This value can be set per appender.
|
discardingThreshold
|
DISCARDING_THRESHOLD
|
INTEGER
|
0%
|
By default, when the blocking queue has 20% capacity remaining, it will drop events with TRACE, DEBUG, and INFO levels, and keep events with WARN and ERROR levels. To keep all events, set discardingThreshold to 0.
|
maxFlushTime
|
MAX_FLUSH_TIME
|
INTEGER
|
1000 ms
|
The maximum queue flush timeout in milliseconds. Depending on the queue depth and latency to the referenced appender, the AsyncAppender may take an unacceptable amount of time to fully flush the queue. When the LoggerContext is stopped, the AsyncAppender stop method waits this amount of time for the worker thread to complete. Events that cannot be processed within this time are discarded. The semantics of this value are identical to those of Thread.join(long).
|
neverBlock
|
NEVER_BLOCK
|
BOOLEAN
|
false
|
By default, this parameter is set to false, which means that the appender will block appending to a full queue rather than lose the message. If you set it to true, the appender will drop the message and not block your application.
|
Appender Name
|
Environment Variable
|
Default
|
---|---|---|
ASYNC_APPENDER_APPLICATION
|
MAX_QUEUE_SIZE_APPLICATION
|
10000
|
ASYNC_APPENDER_CONSOLE
|
ASYNC_APPENDER_CONSOLE
|
10000
|
ASYNC_APPENDER_CONFIGURATION
|
MAX_QUEUE_SIZE_CONFIGURATION
|
1000
|
ASYNC_APPENDER_SECURITY
|
MAX_QUEUE_SIZE_SECURITY
|
1000
|
ASYNC_APPENDER_DATABASE
|
MAX_QUEUE_SIZE_DATABASE
|
1000
|
ASYNC_APPENDER_COMMUNICATION
|
MAX_QUEUE_SIZE_COMMUNICATION
|
1000
|
ASYNC_APPENDER_ERROR
|
MAX_QUEUE_SIZE_ERROR
|
5000
|
ASYNC_APPENDER_SCRIPT
|
MAX_QUEUE_SIZE_SCRIPT
|
5000
|
ASYNC_APPENDER_SCRIPT_ERROR
|
MAX_QUEUE_SIZE_SCRIPT_ERROR
|
5000
|
Log Retention Setting
|
Property Name
|
Default
|
Description
|
---|---|---|---|
Maximum File Size In KB
|
MAX_FILE_SIZE
|
100000
|
Limit for the size of each log file
|
Maximum Number Days For Archive
|
MAX_HISTORY_SIZE
|
7
|
Number of days of log files kept in the archive
|
Total Size In GB Of All Log Files to Retain
|
TOTAL_SIZE_CAP
|
10
|
Limit for the size of all log files in the archive
|