| Modifier and Type | Field and Description |
|---|---|
| public static final byte[] | EMPTY_BYTE_ARRAY
The empty array. |
| public static final Object[] | EMPTY_OBJECT_ARRAY
The empty array. |
| public static final boolean | ENABLE_THREADLOCALS
Kill switch for object pooling in ThreadLocals that enables much of the LOG4J2-1270 no-GC behaviour. |
| public static final boolean | IS_WEB_APP
|
| public static final int | JAVA_MAJOR_VERSION
Java major version. |
| public static final String | LOG4J2_DEBUG
Name of the system property that will turn on TRACE level internal log4j2 status logging. |
| public static final int | MAX_REUSABLE_MESSAGE_SIZE
Maximum size of the StringBuilders used in RingBuffer LogEvents to store the contents of reusable Messages. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| pack-priv static int | |
| private static boolean | Returns: true if the class could be found or false otherwise.The class name. className)Determines if a named Class can be loaded or not. |
| private static int |
| EMPTY_BYTE_ARRAY | back to summary |
|---|---|
| public static final byte[] EMPTY_BYTE_ARRAY The empty array. | |
| EMPTY_OBJECT_ARRAY | back to summary |
|---|---|
| public static final Object[] EMPTY_OBJECT_ARRAY The empty array. | |
| ENABLE_THREADLOCALS | back to summary |
|---|---|
| public static final boolean ENABLE_THREADLOCALS Kill switch for object pooling in ThreadLocals that enables much of the LOG4J2-1270 no-GC behaviour.
| |
| IS_WEB_APP | back to summary |
|---|---|
| public static final boolean IS_WEB_APP
| |
| JAVA_MAJOR_VERSION | back to summary |
|---|---|
| public static final int JAVA_MAJOR_VERSION Java major version. | |
| LOG4J2_DEBUG | back to summary |
|---|---|
| public static final String LOG4J2_DEBUG Name of the system property that will turn on TRACE level internal log4j2 status logging.
If system property is either defined empty or its value equals to | |
| MAX_REUSABLE_MESSAGE_SIZE | back to summary |
|---|---|
| public static final int MAX_REUSABLE_MESSAGE_SIZE Maximum size of the StringBuilders used in RingBuffer LogEvents to store the contents of reusable Messages. After a large message has been delivered to the appenders, the StringBuilder is trimmed to this size. The default value is 518, which allows the StringBuilder to resize three times from its initial size. Users can override with system property "log4j.maxReusableMsgSize".
| |
| Constants | back to summary |
|---|---|
| private Constants() Prevent class instantiation. | |
| getMajorVersion | back to summary |
|---|---|
| private static int getMajorVersion() | |
| getMajorVersion | back to summary |
|---|---|
| pack-priv static int getMajorVersion(final String version) | |
| isClassAvailable | back to summary |
|---|---|
| private static boolean isClassAvailable(final String className) Determines if a named Class can be loaded or not.
| |
| size | back to summary |
|---|---|
| private static int size(final String property, final int defaultValue) | |