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
FieldsModifier and TypeFieldDescriptionprotected longprotected longprotected intprotected Stringprotected Stringprotected static final intprotected static final intprotected Stringprotected Stringprotected Stringprotected longprotected Stringprotected Stringprotected static final Stringprotected static final Stringprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNuxeoLogEvent(String nodeId, org.apache.logging.log4j.core.LogEvent event) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglongintgetLevel()longinthashCode()voidsetInstantEpochSecond(long instantEpochSecond) voidsetInstantNanoOfSecond(long instantNanoOfSecond) voidsetLevel(int level) voidsetLoggerFqcn(String loggerFqcn) voidsetLoggerName(String loggerName) voidsetMessage(String message) voidvoidsetPathInfo(String pathInfo) voidsetThreadId(long threadId) voidsetThreadName(String threadName) voidvoidsetUserPrincipal(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
-