Modifier and Type | Field and Description |
---|---|
static byte[] |
EMPTY_BYTE_ARRAY
The empty array.
|
static Object[] |
EMPTY_OBJECT_ARRAY
The empty array.
|
static boolean |
ENABLE_THREADLOCALS
Kill switch for object pooling in ThreadLocals that enables much of the LOG4J2-1270 no-GC behaviour.
|
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 int |
JAVA_MAJOR_VERSION |
static String |
LOG4J2_DEBUG
Name of the system property that will turn on TRACE level internal log4j2 status logging.
|
static int |
MAX_REUSABLE_MESSAGE_SIZE
Maximum size of the StringBuilders used in RingBuffer LogEvents to store the contents of reusable Messages.
|
public 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 int JAVA_MAJOR_VERSION
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 String LOG4J2_DEBUG
If system property "log4j2.debug" is either defined empty or its value equals to true
(ignoring case), all internal log4j2 logging will be
printed to the console. The presence of this system property overrides any value set in the configuration's
<Configuration status="<level>" ...>
status attribute, as well as any value set for
system property org.apache.logging.log4j.simplelog.StatusLogger.level
.
public static final Object[] EMPTY_OBJECT_ARRAY
public static final byte[] EMPTY_BYTE_ARRAY
Copyright © 1999-1969 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.