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.Serializable
Proxy pattern used to serialize the LogEvent.
-
-
Field Summary
Fields Modifier and Type Field Description private StringMap
contextData
private ThreadContext.ContextStack
contextStack
private boolean
isEndOfBatch
private boolean
isLocationRequired
private Level
level
private java.lang.String
loggerFQCN
private java.lang.String
loggerName
private Marker
marker
private java.rmi.MarshalledObject<Message>
marshalledMessage
since 2.8private Message
message
private java.lang.String
messageString
since 2.8private int
nanoOfMillisecond
since 2.11private long
nanoTime
private static long
serialVersionUID
private java.lang.StackTraceElement
source
private long
threadId
private java.lang.String
threadName
private int
threadPriority
private java.lang.Throwable
thrown
private ThrowableProxy
thrownProxy
private long
timeMillis
-
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 Message
memento(ReusableMessage message)
private static StringMap
memento(ReadOnlyStringMap data)
private Message
message()
protected java.lang.Object
readResolve()
Returns a Log4jLogEvent using the data in the proxy.private void
writeObject(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()
-
-