Class Log4jLogEvent.LogEventProxy
java.lang.Object
org.apache.logging.log4j.core.impl.Log4jLogEvent.LogEventProxy
- All Implemented Interfaces:
Serializable
- Enclosing class:
Log4jLogEvent
Proxy pattern used to serialize the LogEvent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringMapprivate final ThreadContext.ContextStackprivate final booleanprivate final booleanprivate final Levelprivate final Stringprivate final Stringprivate final Markerprivate MarshalledObject<Message> since 2.8private final Messageprivate Stringsince 2.8private final intsince 2.11private final longprivate static final longprivate final StackTraceElementprivate final longprivate final Stringprivate final intprivate final Throwableprivate final ThrowableProxyprivate final long -
Constructor Summary
ConstructorsConstructorDescriptionLogEventProxy(Log4jLogEvent event, boolean includeLocation) LogEventProxy(LogEvent event, boolean includeLocation) -
Method Summary
Modifier and TypeMethodDescriptionprivate static MarshalledObject<Message> private static Messagememento(ReusableMessage message) private static StringMapmemento(ReadOnlyStringMap data) private Messagemessage()protected ObjectReturns a Log4jLogEvent using the data in the proxy.private void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
loggerFQCN
-
marker
-
level
-
loggerName
-
message
-
marshalledMessage
since 2.8 -
messageString
since 2.8 -
timeMillis
private final long timeMillis -
nanoOfMillisecond
private final int nanoOfMillisecondsince 2.11 -
thrown
-
thrownProxy
-
contextData
- Since:
- 2.7
-
contextStack
-
threadId
private final long threadId- Since:
- 2.6
-
threadName
-
threadPriority
private final int threadPriority- Since:
- 2.6
-
source
-
isLocationRequired
private final boolean isLocationRequired -
isEndOfBatch
private final boolean isEndOfBatch -
nanoTime
private final transient long nanoTime- Since:
- 2.4
-
-
Constructor Details
-
LogEventProxy
-
LogEventProxy
-
-
Method Details
-
memento
-
memento
-
marshall
-
writeObject
- Throws:
IOException
-
readResolve
Returns a Log4jLogEvent using the data in the proxy.- Returns:
- Log4jLogEvent.
-
message
-