Package org.nuxeo.log4j
Class NuxeoLogEvent
java.lang.Object
org.nuxeo.log4j.NuxeoLogEvent
- All Implemented Interfaces:
Serializable
An object representing a log4j event that can be Avro serialized.
- Since:
- 2023.7
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
protected long
protected int
protected String
protected String
protected static final int
protected static final int
protected String
protected String
protected String
protected long
protected String
protected String
protected static final String
protected static final String
protected String
-
Constructor Summary
ModifierConstructorDescriptionprotected
NuxeoLogEvent
(String nodeId, org.apache.logging.log4j.core.LogEvent event) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
long
int
getLevel()
long
int
hashCode()
void
setInstantEpochSecond
(long instantEpochSecond) void
setInstantNanoOfSecond
(long instantNanoOfSecond) void
setLevel
(int level) void
setLoggerFqcn
(String loggerFqcn) void
setLoggerName
(String loggerName) void
setMessage
(String message) void
void
setPathInfo
(String pathInfo) void
setThreadId
(long threadId) void
setThreadName
(String threadName) void
void
setUserPrincipal
(String userPrincipal) toString()
-
Field Details
-
MAX_MESSAGE_SIZE
protected static final int MAX_MESSAGE_SIZE- See Also:
-
TRUNCATE_PREFIX
- See Also:
-
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
-
level
protected int level -
loggerName
-
loggerFqcn
-
nodeId
-
thrown
-
threadId
protected long threadId -
threadName
-
pathInfo
-
userPrincipal
-
-
Constructor Details
-
NuxeoLogEvent
protected NuxeoLogEvent() -
NuxeoLogEvent
-
-
Method Details
-
getInstantEpochSecond
public long getInstantEpochSecond() -
setInstantEpochSecond
public void setInstantEpochSecond(long instantEpochSecond) -
getInstantNanoOfSecond
public long getInstantNanoOfSecond() -
setInstantNanoOfSecond
public void setInstantNanoOfSecond(long instantNanoOfSecond) -
getMessage
-
setMessage
-
getThrown
-
setThrown
-
getLevel
public int getLevel() -
setLevel
public void setLevel(int level) -
getLoggerName
-
setLoggerName
-
getLoggerFqcn
-
setLoggerFqcn
-
getThreadId
public long getThreadId() -
setThreadId
public void setThreadId(long threadId) -
getThreadName
-
getNodeId
-
setNodeId
-
getPathInfo
-
setPathInfo
-
getUserPrincipal
-
setUserPrincipal
-
setThreadName
-
hashCode
public int hashCode() -
equals
-
toString
-