| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_144) on Tue Feb 25 21:03:09 MST 2020 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>AbstractLogEvent (Apache Log4j Core 2.13.1 API)</title> |
| <meta name="date" content="2020-02-25"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="AbstractLogEvent (Apache Log4j Core 2.13.1 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/AbstractLogEvent.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">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/logging/log4j/core/AbstractLifeCycle.html" title="class in org.apache.logging.log4j.core"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/logging/log4j/core/Appender.html" title="interface in org.apache.logging.log4j.core"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/logging/log4j/core/AbstractLogEvent.html" target="_top">Frames</a></li> |
| <li><a href="AbstractLogEvent.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.logging.log4j.core</div> |
| <h2 title="Class AbstractLogEvent" class="title">Class AbstractLogEvent</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.logging.log4j.core.AbstractLogEvent</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public abstract class <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.36">AbstractLogEvent</a> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> |
| implements <a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></pre> |
| <div class="block">An abstract log event implementation with default values for all methods. The setters are no-ops.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../serialized-form.html#org.apache.logging.log4j.core.AbstractLogEvent">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#AbstractLogEvent--">AbstractLogEvent</a></span>()</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>org.apache.logging.log4j.util.ReadOnlyStringMap</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getContextData--">getContextData</a></span>()</code> |
| <div class="block">Returns the <code>ReadOnlyStringMap</code> object holding context data key-value pairs.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getContextMap--">getContextMap</a></span>()</code> |
| <div class="block">Returns <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collections.html?is-external=true#emptyMap--" title="class or interface in java.util"><code>Collections.emptyMap()</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>org.apache.logging.log4j.ThreadContext.ContextStack</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getContextStack--">getContextStack</a></span>()</code> |
| <div class="block">Gets the context stack (also known as Nested Diagnostic Context or NDC).</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/logging/log4j/core/time/Instant.html" title="interface in org.apache.logging.log4j.core.time">Instant</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getInstant--">getInstant</a></span>()</code> |
| <div class="block">Returns the Instant when the message was logged.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>org.apache.logging.log4j.Level</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getLevel--">getLevel</a></span>()</code> |
| <div class="block">Gets the level.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getLoggerFqcn--">getLoggerFqcn</a></span>()</code> |
| <div class="block">Returns the fully qualified class name of the caller of the logging API.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getLoggerName--">getLoggerName</a></span>()</code> |
| <div class="block">Gets the logger name.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>org.apache.logging.log4j.Marker</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getMarker--">getMarker</a></span>()</code> |
| <div class="block">Gets the Marker associated with the event.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>org.apache.logging.log4j.message.Message</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getMessage--">getMessage</a></span>()</code> |
| <div class="block">Gets the message associated with the event.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/apache/logging/log4j/core/time/MutableInstant.html" title="class in org.apache.logging.log4j.core.time">MutableInstant</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getMutableInstant--">getMutableInstant</a></span>()</code> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getNanoTime--">getNanoTime</a></span>()</code> |
| <div class="block">Returns the value of the running Java Virtual Machine's high-resolution time source when this event was created, |
| or a dummy value if it is known that this value will not be used downstream.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/StackTraceElement.html?is-external=true" title="class or interface in java.lang">StackTraceElement</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getSource--">getSource</a></span>()</code> |
| <div class="block">Gets the source of logging request.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getThreadId--">getThreadId</a></span>()</code> |
| <div class="block">Gets the thread ID.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getThreadName--">getThreadName</a></span>()</code> |
| <div class="block">Gets the thread name.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getThreadPriority--">getThreadPriority</a></span>()</code> |
| <div class="block">Gets the thread priority.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getThrown--">getThrown</a></span>()</code> |
| <div class="block">Gets throwable associated with logging request.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/logging/log4j/core/impl/ThrowableProxy.html" title="class in org.apache.logging.log4j.core.impl">ThrowableProxy</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getThrownProxy--">getThrownProxy</a></span>()</code> |
| <div class="block">Gets throwable proxy associated with logging request.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#getTimeMillis--">getTimeMillis</a></span>()</code> |
| <div class="block">Gets event time in milliseconds since midnight, January 1, 1970 UTC.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#isEndOfBatch--">isEndOfBatch</a></span>()</code> |
| <div class="block">Returns <code>true</code> if this event is the last one in a batch, <code>false</code> otherwise.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#isIncludeLocation--">isIncludeLocation</a></span>()</code> |
| <div class="block">Returns whether the source of the logging request is required downstream.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#setEndOfBatch-boolean-">setEndOfBatch</a></span>(boolean endOfBatch)</code> |
| <div class="block">Sets whether this event is the last one in a batch.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#setIncludeLocation-boolean-">setIncludeLocation</a></span>(boolean locationRequired)</code> |
| <div class="block">Sets whether the source of the logging request is required downstream.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/logging/log4j/core/AbstractLogEvent.html#toImmutable--">toImmutable</a></span>()</code> |
| <div class="block">Subclasses should implement this method to provide an immutable version.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="AbstractLogEvent--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>AbstractLogEvent</h4> |
| <pre>public <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.36">AbstractLogEvent</a>()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="toImmutable--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toImmutable</h4> |
| <pre>public <a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a> <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.46">toImmutable</a>()</pre> |
| <div class="block">Subclasses should implement this method to provide an immutable version.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#toImmutable--">toImmutable</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an immutable version of this log event</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getContextData--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getContextData</h4> |
| <pre>public org.apache.logging.log4j.util.ReadOnlyStringMap <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.51">getContextData</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getContextData--">LogEvent</a></code></span></div> |
| <div class="block">Returns the <code>ReadOnlyStringMap</code> object holding context data key-value pairs. |
| <p> |
| Context data (also known as Mapped Diagnostic Context or MDC) is data that is set by the application to be |
| included in all subsequent log events. The default source for context data is the <code>ThreadContext</code> (and |
| <a href="https://logging.apache.org/log4j/2.x/manual/configuration.html#PropertySubstitution">properties</a> |
| configured on the Logger that logged the event), but users can configure a custom <a href="../../../../../org/apache/logging/log4j/core/ContextDataInjector.html" title="interface in org.apache.logging.log4j.core"><code>ContextDataInjector</code></a> |
| to inject key-value pairs from any arbitrary source.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getContextData--">getContextData</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>ReadOnlyStringMap</code> object holding context data key-value pairs</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../org/apache/logging/log4j/core/ContextDataInjector.html" title="interface in org.apache.logging.log4j.core"><code>ContextDataInjector</code></a>, |
| <code>ThreadContext</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getContextMap--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getContextMap</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.59">getContextMap</a>()</pre> |
| <div class="block">Returns <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collections.html?is-external=true#emptyMap--" title="class or interface in java.util"><code>Collections.emptyMap()</code></a>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getContextMap--">getContextMap</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The context map, never <code>null</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getContextStack--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getContextStack</h4> |
| <pre>public org.apache.logging.log4j.ThreadContext.ContextStack <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.64">getContextStack</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getContextStack--">LogEvent</a></code></span></div> |
| <div class="block">Gets the context stack (also known as Nested Diagnostic Context or NDC).</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getContextStack--">getContextStack</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The context stack, never <code>null</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLevel--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLevel</h4> |
| <pre>public org.apache.logging.log4j.Level <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.69">getLevel</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getLevel--">LogEvent</a></code></span></div> |
| <div class="block">Gets the level.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getLevel--">getLevel</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>level.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLoggerFqcn--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLoggerFqcn</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.74">getLoggerFqcn</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getLoggerFqcn--">LogEvent</a></code></span></div> |
| <div class="block">Returns the fully qualified class name of the caller of the logging API.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getLoggerFqcn--">getLoggerFqcn</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The fully qualified class name of the caller.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLoggerName--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLoggerName</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.79">getLoggerName</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getLoggerName--">LogEvent</a></code></span></div> |
| <div class="block">Gets the logger name.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getLoggerName--">getLoggerName</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>logger name, may be <code>null</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getMarker--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMarker</h4> |
| <pre>public org.apache.logging.log4j.Marker <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.84">getMarker</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getMarker--">LogEvent</a></code></span></div> |
| <div class="block">Gets the Marker associated with the event.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getMarker--">getMarker</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Marker or <code>null</code> if no Marker was defined on this LogEvent</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getMessage--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMessage</h4> |
| <pre>public org.apache.logging.log4j.message.Message <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.89">getMessage</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getMessage--">LogEvent</a></code></span></div> |
| <div class="block">Gets the message associated with the event.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getMessage--">getMessage</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>message.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getSource--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSource</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/StackTraceElement.html?is-external=true" title="class or interface in java.lang">StackTraceElement</a> <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.94">getSource</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getSource--">LogEvent</a></code></span></div> |
| <div class="block">Gets the source of logging request.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getSource--">getSource</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>source of logging request, may be null.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getThreadId--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getThreadId</h4> |
| <pre>public long <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.99">getThreadId</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getThreadId--">LogEvent</a></code></span></div> |
| <div class="block">Gets the thread ID.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getThreadId--">getThreadId</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>thread ID.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getThreadName--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getThreadName</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.104">getThreadName</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getThreadName--">LogEvent</a></code></span></div> |
| <div class="block">Gets the thread name.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getThreadName--">getThreadName</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>thread name, may be null. |
| TODO guess this could go into a thread context object too. (RG) Why?</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getThreadPriority--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getThreadPriority</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.109">getThreadPriority</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getThreadPriority--">LogEvent</a></code></span></div> |
| <div class="block">Gets the thread priority.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getThreadPriority--">getThreadPriority</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>thread priority.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getThrown--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getThrown</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.114">getThrown</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getThrown--">LogEvent</a></code></span></div> |
| <div class="block">Gets throwable associated with logging request. |
| |
| <p>Convenience method for <code>ThrowableProxy.getThrowable();</code></p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getThrown--">getThrown</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>throwable, may be null.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getThrownProxy--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getThrownProxy</h4> |
| <pre>public <a href="../../../../../org/apache/logging/log4j/core/impl/ThrowableProxy.html" title="class in org.apache.logging.log4j.core.impl">ThrowableProxy</a> <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.119">getThrownProxy</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getThrownProxy--">LogEvent</a></code></span></div> |
| <div class="block">Gets throwable proxy associated with logging request.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getThrownProxy--">getThrownProxy</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>throwable, may be null.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getTimeMillis--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTimeMillis</h4> |
| <pre>public long <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.124">getTimeMillis</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getTimeMillis--">LogEvent</a></code></span></div> |
| <div class="block">Gets event time in milliseconds since midnight, January 1, 1970 UTC. |
| Use <a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getInstant--"><code>LogEvent.getInstant()</code></a> to get higher precision timestamp information if available on this platform.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getTimeMillis--">getTimeMillis</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the milliseconds component of this log event's <a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getInstant--">timestamp</a></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/System.html?is-external=true#currentTimeMillis--" title="class or interface in java.lang"><code>System.currentTimeMillis()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getInstant--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getInstant</h4> |
| <pre>public <a href="../../../../../org/apache/logging/log4j/core/time/Instant.html" title="interface in org.apache.logging.log4j.core.time">Instant</a> <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.129">getInstant</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getInstant--">LogEvent</a></code></span></div> |
| <div class="block">Returns the Instant when the message was logged. |
| <p> |
| <b>Caution</b>: if this <code>LogEvent</code> implementation is mutable and reused for multiple consecutive log messages, |
| then the <code>Instant</code> object returned by this method is also mutable and reused. |
| Client code should not keep a reference to the returned object but make a copy instead. |
| </p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getInstant--">getInstant</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>Instant</code> holding Instant details for this log event</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getMutableInstant--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMutableInstant</h4> |
| <pre>protected final <a href="../../../../../org/apache/logging/log4j/core/time/MutableInstant.html" title="class in org.apache.logging.log4j.core.time">MutableInstant</a> <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.133">getMutableInstant</a>()</pre> |
| </li> |
| </ul> |
| <a name="isEndOfBatch--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isEndOfBatch</h4> |
| <pre>public boolean <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.141">isEndOfBatch</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#isEndOfBatch--">LogEvent</a></code></span></div> |
| <div class="block">Returns <code>true</code> if this event is the last one in a batch, <code>false</code> otherwise. Used by asynchronous |
| Loggers and Appenders to signal to buffered downstream components when to flush to disk, as a more efficient |
| alternative to the <code>immediateFlush=true</code> configuration.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#isEndOfBatch--">isEndOfBatch</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>whether this event is the last one in a batch.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isIncludeLocation--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isIncludeLocation</h4> |
| <pre>public boolean <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.146">isIncludeLocation</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#isIncludeLocation--">LogEvent</a></code></span></div> |
| <div class="block">Returns whether the source of the logging request is required downstream. Asynchronous Loggers and Appenders use |
| this flag to determine whether to take a <code>StackTrace</code> snapshot or not before handing off this event to |
| another thread.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#isIncludeLocation--">isIncludeLocation</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the source of the logging request is required downstream, <code>false</code> otherwise.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getSource--"><code>LogEvent.getSource()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setEndOfBatch-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setEndOfBatch</h4> |
| <pre>public void <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.151">setEndOfBatch</a>(boolean endOfBatch)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#setEndOfBatch-boolean-">LogEvent</a></code></span></div> |
| <div class="block">Sets whether this event is the last one in a batch. Used by asynchronous Loggers and Appenders to signal to |
| buffered downstream components when to flush to disk, as a more efficient alternative to the |
| <code>immediateFlush=true</code> configuration.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#setEndOfBatch-boolean-">setEndOfBatch</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>endOfBatch</code> - <code>true</code> if this event is the last one in a batch, <code>false</code> otherwise.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setIncludeLocation-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setIncludeLocation</h4> |
| <pre>public void <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.156">setIncludeLocation</a>(boolean locationRequired)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#setIncludeLocation-boolean-">LogEvent</a></code></span></div> |
| <div class="block">Sets whether the source of the logging request is required downstream. Asynchronous Loggers and Appenders use |
| this flag to determine whether to take a <code>StackTrace</code> snapshot or not before handing off this event to |
| another thread.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#setIncludeLocation-boolean-">setIncludeLocation</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>locationRequired</code> - <code>true</code> if the source of the logging request is required downstream, <code>false</code> |
| otherwise.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getSource--"><code>LogEvent.getSource()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNanoTime--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getNanoTime</h4> |
| <pre>public long <a href="../../../../../src-html/org/apache/logging/log4j/core/AbstractLogEvent.html#line.161">getNanoTime</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getNanoTime--">LogEvent</a></code></span></div> |
| <div class="block">Returns the value of the running Java Virtual Machine's high-resolution time source when this event was created, |
| or a dummy value if it is known that this value will not be used downstream.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html#getNanoTime--">getNanoTime</a></code> in interface <code><a href="../../../../../org/apache/logging/log4j/core/LogEvent.html" title="interface in org.apache.logging.log4j.core">LogEvent</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The value of the running Java Virtual Machine's high-resolution time source when this event was created.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/AbstractLogEvent.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">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/logging/log4j/core/AbstractLifeCycle.html" title="class in org.apache.logging.log4j.core"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/logging/log4j/core/Appender.html" title="interface in org.apache.logging.log4j.core"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/logging/log4j/core/AbstractLogEvent.html" target="_top">Frames</a></li> |
| <li><a href="AbstractLogEvent.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small><p align="center">Copyright © 1999-2020 <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> |
| </body> |
| </html> |