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 StringMap
private final ThreadContext.ContextStack
private final boolean
private final boolean
private final Level
private final String
private final String
private final Marker
private MarshalledObject
<Message> since 2.8private final Message
private String
since 2.8private final int
since 2.11private final long
private static final long
private final StackTraceElement
private final long
private final String
private final int
private final Throwable
private final ThrowableProxy
private final long
-
Constructor Summary
ConstructorsConstructorDescriptionLogEventProxy
(Log4jLogEvent event, boolean includeLocation) LogEventProxy
(LogEvent event, boolean includeLocation) -
Method Summary
Modifier and TypeMethodDescriptionprivate static MarshalledObject
<Message> private static Message
memento
(ReusableMessage message) private static StringMap
memento
(ReadOnlyStringMap data) private Message
message()
protected Object
Returns 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
-