Record Class JdbcAppender.LogRecord
java.lang.Object
java.lang.Record
com.elitesland.ystdms.sys.log.provider.log4j2.JdbcAppender.LogRecord
- Enclosing class:
JdbcAppender
-
Constructor Summary
ConstructorsConstructorDescriptionLogRecord(Long timestamp, String level, String logger, String thread, String message, String exception, String appName, String traceId, String tenantId, String docId, String docNo, String docType, String userId, String userName, String payload) Creates an instance of aLogRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionappName()Returns the value of theappNamerecord component.docId()Returns the value of thedocIdrecord component.docNo()Returns the value of thedocNorecord component.docType()Returns the value of thedocTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.logger()Returns the value of theloggerrecord component.message()Returns the value of themessagerecord component.payload()Returns the value of thepayloadrecord component.tenantId()Returns the value of thetenantIdrecord component.thread()Returns the value of thethreadrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.traceId()Returns the value of thetraceIdrecord component.userId()Returns the value of theuserIdrecord component.userName()Returns the value of theuserNamerecord component.
-
Constructor Details
-
LogRecord
public LogRecord(Long timestamp, String level, String logger, String thread, String message, String exception, String appName, String traceId, String tenantId, String docId, String docNo, String docType, String userId, String userName, String payload) Creates an instance of aLogRecordrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentlevel- the value for thelevelrecord componentlogger- the value for theloggerrecord componentthread- the value for thethreadrecord componentmessage- the value for themessagerecord componentexception- the value for theexceptionrecord componentappName- the value for theappNamerecord componenttraceId- the value for thetraceIdrecord componenttenantId- the value for thetenantIdrecord componentdocId- the value for thedocIdrecord componentdocNo- the value for thedocNorecord componentdocType- the value for thedocTyperecord componentuserId- the value for theuserIdrecord componentuserName- the value for theuserNamerecord componentpayload- the value for thepayloadrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
logger
Returns the value of theloggerrecord component.- Returns:
- the value of the
loggerrecord component
-
thread
Returns the value of thethreadrecord component.- Returns:
- the value of the
threadrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-
appName
Returns the value of theappNamerecord component.- Returns:
- the value of the
appNamerecord component
-
traceId
Returns the value of thetraceIdrecord component.- Returns:
- the value of the
traceIdrecord component
-
tenantId
Returns the value of thetenantIdrecord component.- Returns:
- the value of the
tenantIdrecord component
-
docId
Returns the value of thedocIdrecord component.- Returns:
- the value of the
docIdrecord component
-
docNo
Returns the value of thedocNorecord component.- Returns:
- the value of the
docNorecord component
-
docType
Returns the value of thedocTyperecord component.- Returns:
- the value of the
docTyperecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
userName
Returns the value of theuserNamerecord component.- Returns:
- the value of the
userNamerecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-