Modifier and Type | Field and Description |
---|---|
static boolean |
ENABLE_DIRECT_ENCODERS
Kill switch for garbage-free Layout behaviour that encodes LogEvents directly into
ByteBufferDestination s without creating intermediate temporary
Objects. |
static boolean |
ENABLE_THREADLOCALS
Kill switch for object pooling in ThreadLocals that enables much of the LOG4J2-1270 no-GC behaviour.
|
static int |
ENCODER_BYTE_BUFFER_SIZE
Default size of ByteBuffers used to encode LogEvents without allocating temporary objects.
|
static int |
ENCODER_CHAR_BUFFER_SIZE
Size of CharBuffers used by text encoders.
|
static boolean |
FORMAT_MESSAGES_IN_BACKGROUND
Supports user request LOG4J2-898 to have the option to format a message in the background thread.
|
static boolean |
FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS
Deprecated.
no longer used, lookups are only used when
%m{lookups} is specified |
static int |
INITIAL_REUSABLE_MESSAGE_SIZE
Initial StringBuilder size used in RingBuffer LogEvents to store the contents of reusable Messages.
|
static boolean |
IS_WEB_APP
true if we think we are running in a web container, based on the boolean value of system property
"log4j2.is.webapp", or (if this system property is not set) whether the javax.servlet.Servlet class
is present in the classpath. |
static String |
JNDI_CONTEXT_NAME
JNDI context name string literal.
|
static String |
LOG4J_CONTEXT_SELECTOR
Name of the system property to use to identify the ContextSelector Class.
|
static String |
LOG4J_DEFAULT_STATUS_LEVEL
Property name for the default status (internal log4j logging) level to use if not specified in configuration.
|
static String |
LOG4J_LOG_EVENT_FACTORY
Name of the system property to use to identify the LogEvent factory.
|
static int |
MAX_REUSABLE_MESSAGE_SIZE
Maximum size of the StringBuilders used in RingBuffer LogEvents to store the contents of reusable Messages.
|
static int |
MILLIS_IN_SECONDS
Number of milliseconds in a second.
|
public static final String LOG4J_LOG_EVENT_FACTORY
public static final String LOG4J_CONTEXT_SELECTOR
public static final String LOG4J_DEFAULT_STATUS_LEVEL
public static final String JNDI_CONTEXT_NAME
public static final int MILLIS_IN_SECONDS
public static final boolean FORMAT_MESSAGES_IN_BACKGROUND
@Deprecated public static final boolean FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS
%m{lookups}
is specifiedpublic static final boolean IS_WEB_APP
true
if we think we are running in a web container, based on the boolean value of system property
"log4j2.is.webapp", or (if this system property is not set) whether the javax.servlet.Servlet
class
is present in the classpath.public static final boolean ENABLE_THREADLOCALS
True
for non-web apps
, disable by setting system property
"log4j2.enable.threadlocals" to "false".
public static final boolean ENABLE_DIRECT_ENCODERS
ByteBufferDestination
s without creating intermediate temporary
Objects.
True
by default iff all loggers are asynchronous because system property
Log4jContextSelector
is set to org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
.
Disable by setting system property "log4j2.enable.direct.encoders" to "false".
public static final int INITIAL_REUSABLE_MESSAGE_SIZE
The default value is , users can override with system property "log4j.initialReusableMsgSize".
public static final int MAX_REUSABLE_MESSAGE_SIZE
The default value is , which allows the StringBuilder to resize three times from its initial size. Users can override with system property "log4j.maxReusableMsgSize".
public static final int ENCODER_CHAR_BUFFER_SIZE
The default value is , users can override with system property "log4j.encoder.charBufferSize".
public static final int ENCODER_BYTE_BUFFER_SIZE
The default value is , users can override with system property "log4j.encoder.byteBufferSize".
ByteBufferDestination
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.