| <!DOCTYPE HTML> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (17) --> |
| <title>Constants (Apache Log4j Core 2.23.1 API)</title> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="description" content="declaration: package: org.apache.logging.log4j.core.util, class: Constants"> |
| <meta name="generator" content="javadoc/ClassWriterImpl"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../script-dir/jquery-ui.min.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../jquery-ui.overrides.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../../script-dir/jquery-3.6.1.min.js"></script> |
| <script type="text/javascript" src="../../../../../../script-dir/jquery-ui.min.js"></script> |
| </head> |
| <body class="class-declaration-page"> |
| <script type="text/javascript">var pathtoroot = "../../../../../../"; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <div class="flex-box"> |
| <header role="banner" class="flex-header"> |
| <nav role="navigation"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="top-nav" id="navbar-top"> |
| <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> |
| <ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> |
| <li><a href="../../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="nav-bar-cell1-rev">Class</li> |
| <li><a href="class-use/Constants.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html#class">Help</a></li> |
| </ul> |
| </div> |
| <div class="sub-nav"> |
| <div> |
| <ul class="sub-nav-list"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field-summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method-summary">Method</a></li> |
| </ul> |
| <ul class="sub-nav-list"> |
| <li>Detail: </li> |
| <li><a href="#field-detail">Field</a> | </li> |
| <li>Constr | </li> |
| <li>Method</li> |
| </ul> |
| </div> |
| <div class="nav-list-search"><label for="search-input">SEARCH:</label> |
| <input type="text" id="search-input" value="search" disabled="disabled"> |
| <input type="reset" id="reset-button" value="reset" disabled="disabled"> |
| </div> |
| </div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <span class="skip-nav" id="skip-navbar-top"></span></nav> |
| </header> |
| <div class="flex-content"> |
| <main role="main"> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">org.apache.logging.log4j.core.util</a></div> |
| <h1 title="Class Constants" class="title">Class Constants</h1> |
| </div> |
| <div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a> |
| <div class="inheritance">org.apache.logging.log4j.core.util.Constants</div> |
| </div> |
| <section class="class-description" id="class-description"> |
| <hr> |
| <div class="type-signature"><span class="modifiers">public final class </span><span class="element-name type-name-label">Constants</span> |
| <span class="extends-implements">extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span></div> |
| <div class="block">Log4j Constants.</div> |
| </section> |
| <section class="summary"> |
| <ul class="summary-list"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <li> |
| <section class="field-summary" id="field-summary"> |
| <h2>Field Summary</h2> |
| <div class="caption"><span>Fields</span></div> |
| <div class="summary-table three-column-summary"> |
| <div class="table-header col-first">Modifier and Type</div> |
| <div class="table-header col-second">Field</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-first even-row-color"><code>static final boolean</code></div> |
| <div class="col-second even-row-color"><code><a href="#ENABLE_DIRECT_ENCODERS" class="member-name-link">ENABLE_DIRECT_ENCODERS</a></code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Kill switch for garbage-free Layout behaviour that encodes LogEvents directly into |
| <a href="../layout/ByteBufferDestination.html" title="interface in org.apache.logging.log4j.core.layout"><code>ByteBufferDestination</code></a>s without creating intermediate temporary |
| Objects.</div> |
| </div> |
| <div class="col-first odd-row-color"><code>static final boolean</code></div> |
| <div class="col-second odd-row-color"><code><a href="#ENABLE_THREADLOCALS" class="member-name-link">ENABLE_THREADLOCALS</a></code></div> |
| <div class="col-last odd-row-color"> |
| <div class="block">Kill switch for object pooling in ThreadLocals that enables much of the LOG4J2-1270 no-GC behaviour.</div> |
| </div> |
| <div class="col-first even-row-color"><code>static final int</code></div> |
| <div class="col-second even-row-color"><code><a href="#ENCODER_BYTE_BUFFER_SIZE" class="member-name-link">ENCODER_BYTE_BUFFER_SIZE</a></code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Default size of ByteBuffers used to encode LogEvents without allocating temporary objects.</div> |
| </div> |
| <div class="col-first odd-row-color"><code>static final int</code></div> |
| <div class="col-second odd-row-color"><code><a href="#ENCODER_CHAR_BUFFER_SIZE" class="member-name-link">ENCODER_CHAR_BUFFER_SIZE</a></code></div> |
| <div class="col-last odd-row-color"> |
| <div class="block">Size of CharBuffers used by text encoders.</div> |
| </div> |
| <div class="col-first even-row-color"><code>static final boolean</code></div> |
| <div class="col-second even-row-color"><code><a href="#FORMAT_MESSAGES_IN_BACKGROUND" class="member-name-link">FORMAT_MESSAGES_IN_BACKGROUND</a></code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Supports user request LOG4J2-898 to have the option to format a message in the background thread.</div> |
| </div> |
| <div class="col-first odd-row-color"><code>static final boolean</code></div> |
| <div class="col-second odd-row-color"><code><a href="#FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS" class="member-name-link">FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS</a></code></div> |
| <div class="col-last odd-row-color"> |
| <div class="block"><span class="deprecated-label">Deprecated.</span> |
| <div class="deprecation-comment">no longer used, lookups are only used when <code>%m{lookups}</code> is specified</div> |
| </div> |
| </div> |
| <div class="col-first even-row-color"><code>static final int</code></div> |
| <div class="col-second even-row-color"><code><a href="#INITIAL_REUSABLE_MESSAGE_SIZE" class="member-name-link">INITIAL_REUSABLE_MESSAGE_SIZE</a></code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Initial StringBuilder size used in RingBuffer LogEvents to store the contents of reusable Messages.</div> |
| </div> |
| <div class="col-first odd-row-color"><code>static final boolean</code></div> |
| <div class="col-second odd-row-color"><code><a href="#IS_WEB_APP" class="member-name-link">IS_WEB_APP</a></code></div> |
| <div class="col-last odd-row-color"> |
| <div class="block"><code>true</code> 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 <code>javax.servlet.Servlet</code> class |
| is present in the classpath.</div> |
| </div> |
| <div class="col-first even-row-color"><code>static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div> |
| <div class="col-second even-row-color"><code><a href="#JNDI_CONTEXT_NAME" class="member-name-link">JNDI_CONTEXT_NAME</a></code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">JNDI context name string literal.</div> |
| </div> |
| <div class="col-first odd-row-color"><code>static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div> |
| <div class="col-second odd-row-color"><code><a href="#LOG4J_CONTEXT_SELECTOR" class="member-name-link">LOG4J_CONTEXT_SELECTOR</a></code></div> |
| <div class="col-last odd-row-color"> |
| <div class="block">Name of the system property to use to identify the ContextSelector Class.</div> |
| </div> |
| <div class="col-first even-row-color"><code>static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div> |
| <div class="col-second even-row-color"><code><a href="#LOG4J_DEFAULT_STATUS_LEVEL" class="member-name-link">LOG4J_DEFAULT_STATUS_LEVEL</a></code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Property name for the default status (internal log4j logging) level to use if not specified in configuration.</div> |
| </div> |
| <div class="col-first odd-row-color"><code>static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div> |
| <div class="col-second odd-row-color"><code><a href="#LOG4J_LOG_EVENT_FACTORY" class="member-name-link">LOG4J_LOG_EVENT_FACTORY</a></code></div> |
| <div class="col-last odd-row-color"> |
| <div class="block">Name of the system property to use to identify the LogEvent factory.</div> |
| </div> |
| <div class="col-first even-row-color"><code>static final int</code></div> |
| <div class="col-second even-row-color"><code><a href="#MAX_REUSABLE_MESSAGE_SIZE" class="member-name-link">MAX_REUSABLE_MESSAGE_SIZE</a></code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Maximum size of the StringBuilders used in RingBuffer LogEvents to store the contents of reusable Messages.</div> |
| </div> |
| <div class="col-first odd-row-color"><code>static final int</code></div> |
| <div class="col-second odd-row-color"><code><a href="#MILLIS_IN_SECONDS" class="member-name-link">MILLIS_IN_SECONDS</a></code></div> |
| <div class="col-last odd-row-color"> |
| <div class="block">Number of milliseconds in a second.</div> |
| </div> |
| <div class="col-first even-row-color"><code>static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div> |
| <div class="col-second even-row-color"><code><a href="#SCRIPT_LANGUAGES" class="member-name-link">SCRIPT_LANGUAGES</a></code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Control which script languages are allowed, if any.</div> |
| </div> |
| </div> |
| </section> |
| </li> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <li> |
| <section class="method-summary" id="method-summary"> |
| <h2>Method Summary</h2> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-" title="class or interface in java.lang" class="external-link">wait</a></code></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <section class="details"> |
| <ul class="details-list"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <li> |
| <section class="field-details" id="field-detail"> |
| <h2>Field Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="LOG4J_LOG_EVENT_FACTORY"> |
| <h3>LOG4J_LOG_EVENT_FACTORY</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">LOG4J_LOG_EVENT_FACTORY</span></div> |
| <div class="block">Name of the system property to use to identify the LogEvent factory.</div> |
| <dl class="notes"> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="../../../../../../constant-values.html#org.apache.logging.log4j.core.util.Constants.LOG4J_LOG_EVENT_FACTORY">Constant Field Values</a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="LOG4J_CONTEXT_SELECTOR"> |
| <h3>LOG4J_CONTEXT_SELECTOR</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">LOG4J_CONTEXT_SELECTOR</span></div> |
| <div class="block">Name of the system property to use to identify the ContextSelector Class.</div> |
| <dl class="notes"> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="../../../../../../constant-values.html#org.apache.logging.log4j.core.util.Constants.LOG4J_CONTEXT_SELECTOR">Constant Field Values</a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="LOG4J_DEFAULT_STATUS_LEVEL"> |
| <h3>LOG4J_DEFAULT_STATUS_LEVEL</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">LOG4J_DEFAULT_STATUS_LEVEL</span></div> |
| <div class="block">Property name for the default status (internal log4j logging) level to use if not specified in configuration.</div> |
| <dl class="notes"> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="../../../../../../constant-values.html#org.apache.logging.log4j.core.util.Constants.LOG4J_DEFAULT_STATUS_LEVEL">Constant Field Values</a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="JNDI_CONTEXT_NAME"> |
| <h3>JNDI_CONTEXT_NAME</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">JNDI_CONTEXT_NAME</span></div> |
| <div class="block">JNDI context name string literal.</div> |
| <dl class="notes"> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="../../../../../../constant-values.html#org.apache.logging.log4j.core.util.Constants.JNDI_CONTEXT_NAME">Constant Field Values</a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="SCRIPT_LANGUAGES"> |
| <h3>SCRIPT_LANGUAGES</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">SCRIPT_LANGUAGES</span></div> |
| <div class="block">Control which script languages are allowed, if any.</div> |
| <dl class="notes"> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="../../../../../../constant-values.html#org.apache.logging.log4j.core.util.Constants.SCRIPT_LANGUAGES">Constant Field Values</a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="MILLIS_IN_SECONDS"> |
| <h3>MILLIS_IN_SECONDS</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type">int</span> <span class="element-name">MILLIS_IN_SECONDS</span></div> |
| <div class="block">Number of milliseconds in a second.</div> |
| <dl class="notes"> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="../../../../../../constant-values.html#org.apache.logging.log4j.core.util.Constants.MILLIS_IN_SECONDS">Constant Field Values</a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="FORMAT_MESSAGES_IN_BACKGROUND"> |
| <h3>FORMAT_MESSAGES_IN_BACKGROUND</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type">boolean</span> <span class="element-name">FORMAT_MESSAGES_IN_BACKGROUND</span></div> |
| <div class="block">Supports user request LOG4J2-898 to have the option to format a message in the background thread.</div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS"> |
| <h3>FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS</h3> |
| <div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a> |
| </span><span class="modifiers">public static final</span> <span class="return-type">boolean</span> <span class="element-name">FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS</span></div> |
| <div class="deprecation-block"><span class="deprecated-label">Deprecated.</span> |
| <div class="deprecation-comment">no longer used, lookups are only used when <code>%m{lookups}</code> is specified</div> |
| </div> |
| <div class="block">LOG4J2-3198 property which used to globally opt out of lookups in pattern layout message text, however |
| this is the default and this property is no longer read. |
| |
| Deprecated in 2.15.</div> |
| <dl class="notes"> |
| <dt>Since:</dt> |
| <dd>2.10</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="IS_WEB_APP"> |
| <h3>IS_WEB_APP</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type">boolean</span> <span class="element-name">IS_WEB_APP</span></div> |
| <div class="block"><code>true</code> 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 <code>javax.servlet.Servlet</code> class |
| is present in the classpath.</div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="ENABLE_THREADLOCALS"> |
| <h3>ENABLE_THREADLOCALS</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type">boolean</span> <span class="element-name">ENABLE_THREADLOCALS</span></div> |
| <div class="block">Kill switch for object pooling in ThreadLocals that enables much of the LOG4J2-1270 no-GC behaviour. |
| <p> |
| <code>True</code> for non-<a href="#IS_WEB_APP"><code>web apps</code></a>, disable by setting system property |
| "log4j2.enable.threadlocals" to "false".</div> |
| <dl class="notes"> |
| <dt>Since:</dt> |
| <dd>2.6</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="ENABLE_DIRECT_ENCODERS"> |
| <h3>ENABLE_DIRECT_ENCODERS</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type">boolean</span> <span class="element-name">ENABLE_DIRECT_ENCODERS</span></div> |
| <div class="block">Kill switch for garbage-free Layout behaviour that encodes LogEvents directly into |
| <a href="../layout/ByteBufferDestination.html" title="interface in org.apache.logging.log4j.core.layout"><code>ByteBufferDestination</code></a>s without creating intermediate temporary |
| Objects. |
| <p> |
| <code>True</code> by default iff all loggers are asynchronous because system property |
| <code>Log4jContextSelector</code> is set to <code>org.apache.logging.log4j.core.async.AsyncLoggerContextSelector</code>. |
| Disable by setting system property "log4j2.enable.direct.encoders" to "false".</div> |
| <dl class="notes"> |
| <dt>Since:</dt> |
| <dd>2.6</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="INITIAL_REUSABLE_MESSAGE_SIZE"> |
| <h3>INITIAL_REUSABLE_MESSAGE_SIZE</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type">int</span> <span class="element-name">INITIAL_REUSABLE_MESSAGE_SIZE</span></div> |
| <div class="block">Initial StringBuilder size used in RingBuffer LogEvents to store the contents of reusable Messages. |
| <p> |
| The default value is 128, users can override with system property "log4j.initialReusableMsgSize". |
| </p></div> |
| <dl class="notes"> |
| <dt>Since:</dt> |
| <dd>2.6</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="MAX_REUSABLE_MESSAGE_SIZE"> |
| <h3>MAX_REUSABLE_MESSAGE_SIZE</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type">int</span> <span class="element-name">MAX_REUSABLE_MESSAGE_SIZE</span></div> |
| <div class="block">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. |
| <p> |
| 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". |
| </p></div> |
| <dl class="notes"> |
| <dt>Since:</dt> |
| <dd>2.6</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="ENCODER_CHAR_BUFFER_SIZE"> |
| <h3>ENCODER_CHAR_BUFFER_SIZE</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type">int</span> <span class="element-name">ENCODER_CHAR_BUFFER_SIZE</span></div> |
| <div class="block">Size of CharBuffers used by text encoders. |
| <p> |
| The default value is 2048, users can override with system property "log4j.encoder.charBufferSize". |
| </p></div> |
| <dl class="notes"> |
| <dt>Since:</dt> |
| <dd>2.6</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="ENCODER_BYTE_BUFFER_SIZE"> |
| <h3>ENCODER_BYTE_BUFFER_SIZE</h3> |
| <div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type">int</span> <span class="element-name">ENCODER_BYTE_BUFFER_SIZE</span></div> |
| <div class="block">Default size of ByteBuffers used to encode LogEvents without allocating temporary objects. |
| <p> |
| The default value is 8192, users can override with system property "log4j.encoder.byteBufferSize". |
| </p></div> |
| <dl class="notes"> |
| <dt>Since:</dt> |
| <dd>2.6</dd> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="../layout/ByteBufferDestination.html" title="interface in org.apache.logging.log4j.core.layout"><code>ByteBufferDestination</code></a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <!-- ========= END OF CLASS DATA ========= --> |
| </main> |
| <footer role="contentinfo"> |
| <hr> |
| <p class="legal-copy"><small><p align="center"> Copyright © 1999-2024 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.<br/> 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. </p></small></p> |
| </footer> |
| </div> |
| </div> |
| </body> |
| </html> |