Record Class JdbcAppender.LogRecord

java.lang.Object
java.lang.Record
com.elitesland.ystdms.sys.log.provider.log4j2.JdbcAppender.LogRecord
Enclosing class:
JdbcAppender

public static record JdbcAppender.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) extends Record
  • 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 a LogRecord record class.
      Parameters:
      timestamp - the value for the timestamp record component
      level - the value for the level record component
      logger - the value for the logger record component
      thread - the value for the thread record component
      message - the value for the message record component
      exception - the value for the exception record component
      appName - the value for the appName record component
      traceId - the value for the traceId record component
      tenantId - the value for the tenantId record component
      docId - the value for the docId record component
      docNo - the value for the docNo record component
      docType - the value for the docType record component
      userId - the value for the userId record component
      userName - the value for the userName record component
      payload - the value for the payload record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • timestamp

      public Long timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • level

      public String level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • logger

      public String logger()
      Returns the value of the logger record component.
      Returns:
      the value of the logger record component
    • thread

      public String thread()
      Returns the value of the thread record component.
      Returns:
      the value of the thread record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • exception

      public String exception()
      Returns the value of the exception record component.
      Returns:
      the value of the exception record component
    • appName

      public String appName()
      Returns the value of the appName record component.
      Returns:
      the value of the appName record component
    • traceId

      public String traceId()
      Returns the value of the traceId record component.
      Returns:
      the value of the traceId record component
    • tenantId

      public String tenantId()
      Returns the value of the tenantId record component.
      Returns:
      the value of the tenantId record component
    • docId

      public String docId()
      Returns the value of the docId record component.
      Returns:
      the value of the docId record component
    • docNo

      public String docNo()
      Returns the value of the docNo record component.
      Returns:
      the value of the docNo record component
    • docType

      public String docType()
      Returns the value of the docType record component.
      Returns:
      the value of the docType record component
    • userId

      public String userId()
      Returns the value of the userId record component.
      Returns:
      the value of the userId record component
    • userName

      public String userName()
      Returns the value of the userName record component.
      Returns:
      the value of the userName record component
    • payload

      public String payload()
      Returns the value of the payload record component.
      Returns:
      the value of the payload record component