Class NuxeoLogEvent

java.lang.Object
org.nuxeo.log4j.NuxeoLogEvent
All Implemented Interfaces:
Serializable

public class NuxeoLogEvent extends Object implements Serializable
An object representing a log4j event that can be Avro serialized.
Since:
2023.7
See Also:
  • Field Details

    • MAX_MESSAGE_SIZE

      protected static final int MAX_MESSAGE_SIZE
      See Also:
    • TRUNCATE_PREFIX

      protected static final String TRUNCATE_PREFIX
      See Also:
    • TRUNCATE_SUFFIX

      protected static final String TRUNCATE_SUFFIX
      See Also:
    • MAX_THROWN_SIZE

      protected static final int MAX_THROWN_SIZE
      See Also:
    • instantEpochSecond

      protected long instantEpochSecond
    • instantNanoOfSecond

      protected long instantNanoOfSecond
    • message

      protected String message
    • level

      protected int level
    • loggerName

      protected String loggerName
    • loggerFqcn

      protected String loggerFqcn
    • nodeId

      protected String nodeId
    • thrown

      @Nullable protected String thrown
    • threadId

      protected long threadId
    • threadName

      @Nullable protected String threadName
    • pathInfo

      @Nullable protected String pathInfo
    • userPrincipal

      @Nullable protected String userPrincipal
  • Constructor Details

    • NuxeoLogEvent

      protected NuxeoLogEvent()
    • NuxeoLogEvent

      public NuxeoLogEvent(String nodeId, org.apache.logging.log4j.core.LogEvent event)
  • Method Details

    • getInstantEpochSecond

      public long getInstantEpochSecond()
    • setInstantEpochSecond

      public void setInstantEpochSecond(long instantEpochSecond)
    • getInstantNanoOfSecond

      public long getInstantNanoOfSecond()
    • setInstantNanoOfSecond

      public void setInstantNanoOfSecond(long instantNanoOfSecond)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • getThrown

      public String getThrown()
    • setThrown

      public void setThrown(String thrown)
    • getLevel

      public int getLevel()
    • setLevel

      public void setLevel(int level)
    • getLoggerName

      public String getLoggerName()
    • setLoggerName

      public void setLoggerName(String loggerName)
    • getLoggerFqcn

      public String getLoggerFqcn()
    • setLoggerFqcn

      public void setLoggerFqcn(String loggerFqcn)
    • getThreadId

      public long getThreadId()
    • setThreadId

      public void setThreadId(long threadId)
    • getThreadName

      public String getThreadName()
    • getNodeId

      public String getNodeId()
    • setNodeId

      public void setNodeId(String nodeId)
    • getPathInfo

      public String getPathInfo()
    • setPathInfo

      public void setPathInfo(String pathInfo)
    • getUserPrincipal

      public String getUserPrincipal()
    • setUserPrincipal

      public void setUserPrincipal(String userPrincipal)
    • setThreadName

      public void setThreadName(String threadName)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object