Class Log4jLogEvent.LogEventProxy
- java.lang.Object
-
- org.apache.logging.log4j.core.impl.Log4jLogEvent.LogEventProxy
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Log4jLogEvent
static class Log4jLogEvent.LogEventProxy extends java.lang.Object implements java.io.SerializableProxy pattern used to serialize the LogEvent.
-
-
Field Summary
Fields Modifier and Type Field Description private StringMapcontextDataprivate ThreadContext.ContextStackcontextStackprivate booleanisEndOfBatchprivate booleanisLocationRequiredprivate Levellevelprivate java.lang.StringloggerFQCNprivate java.lang.StringloggerNameprivate Markermarkerprivate java.rmi.MarshalledObject<Message>marshalledMessagesince 2.8private Messagemessageprivate java.lang.StringmessageStringsince 2.8private intnanoOfMillisecondsince 2.11private longnanoTimeprivate static longserialVersionUIDprivate java.lang.StackTraceElementsourceprivate longthreadIdprivate java.lang.StringthreadNameprivate intthreadPriorityprivate java.lang.Throwablethrownprivate ThrowableProxythrownProxyprivate longtimeMillis
-
Constructor Summary
Constructors Constructor Description LogEventProxy(Log4jLogEvent event, boolean includeLocation)LogEventProxy(LogEvent event, boolean includeLocation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.rmi.MarshalledObject<Message>marshall(Message msg)private static Messagememento(ReusableMessage message)private static StringMapmemento(ReadOnlyStringMap data)private Messagemessage()protected java.lang.ObjectreadResolve()Returns a Log4jLogEvent using the data in the proxy.private voidwriteObject(java.io.ObjectOutputStream s)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
loggerFQCN
private final java.lang.String loggerFQCN
-
marker
private final Marker marker
-
level
private final Level level
-
loggerName
private final java.lang.String loggerName
-
message
private final transient Message message
-
marshalledMessage
private java.rmi.MarshalledObject<Message> marshalledMessage
since 2.8
-
messageString
private java.lang.String messageString
since 2.8
-
timeMillis
private final long timeMillis
-
nanoOfMillisecond
private final int nanoOfMillisecond
since 2.11
-
thrown
private final transient java.lang.Throwable thrown
-
thrownProxy
private final ThrowableProxy thrownProxy
-
contextData
private final StringMap contextData
- Since:
- 2.7
-
contextStack
private final ThreadContext.ContextStack contextStack
-
threadId
private final long threadId
- Since:
- 2.6
-
threadName
private final java.lang.String threadName
-
threadPriority
private final int threadPriority
- Since:
- 2.6
-
source
private final java.lang.StackTraceElement source
-
isLocationRequired
private final boolean isLocationRequired
-
isEndOfBatch
private final boolean isEndOfBatch
-
nanoTime
private final transient long nanoTime
- Since:
- 2.4
-
-
Constructor Detail
-
LogEventProxy
public LogEventProxy(Log4jLogEvent event, boolean includeLocation)
-
LogEventProxy
public LogEventProxy(LogEvent event, boolean includeLocation)
-
-
Method Detail
-
memento
private static Message memento(ReusableMessage message)
-
memento
private static StringMap memento(ReadOnlyStringMap data)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException- Throws:
java.io.IOException
-
readResolve
protected java.lang.Object readResolve()
Returns a Log4jLogEvent using the data in the proxy.- Returns:
- Log4jLogEvent.
-
message
private Message message()
-
-