Class 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 Detail

      • 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
      • contextData

        private final StringMap contextData
        Since:
        2.7
      • 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

      • marshall

        private static java.rmi.MarshalledObject<Message> marshall​(Message msg)
      • 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()