Record Class KoraLoggingEvent

java.lang.Object
java.lang.Record
ru.tinkoff.kora.logging.logback.KoraLoggingEvent
All Implemented Interfaces:
ch.qos.logback.classic.spi.ILoggingEvent, ch.qos.logback.core.spi.DeferredProcessingAware

public record KoraLoggingEvent(String threadName, String loggerName, ch.qos.logback.classic.spi.LoggerContextVO loggerContextVO, ch.qos.logback.classic.Level level, String message, String formattedMessage, Object[] argumentArray, ch.qos.logback.classic.spi.IThrowableProxy throwableProxy, List<org.slf4j.Marker> markerList, Map<String,String> mdcPropertyMap, long timeStamp, int nanoseconds, long sequenceNumber, List<org.slf4j.event.KeyValuePair> keyValuePairs, Map<String,ru.tinkoff.kora.logging.common.arg.StructuredArgumentWriter> koraMdc) extends Record implements ch.qos.logback.classic.spi.ILoggingEvent
  • Constructor Details

    • KoraLoggingEvent

      public KoraLoggingEvent(String threadName, String loggerName, ch.qos.logback.classic.spi.LoggerContextVO loggerContextVO, ch.qos.logback.classic.Level level, String message, String formattedMessage, Object[] argumentArray, ch.qos.logback.classic.spi.IThrowableProxy throwableProxy, List<org.slf4j.Marker> markerList, Map<String,String> mdcPropertyMap, long timeStamp, int nanoseconds, long sequenceNumber, List<org.slf4j.event.KeyValuePair> keyValuePairs, Map<String,ru.tinkoff.kora.logging.common.arg.StructuredArgumentWriter> koraMdc)
      Creates an instance of a KoraLoggingEvent record class.
      Parameters:
      threadName - the value for the threadName record component
      loggerName - the value for the loggerName record component
      loggerContextVO - the value for the loggerContextVO record component
      level - the value for the level record component
      message - the value for the message record component
      formattedMessage - the value for the formattedMessage record component
      argumentArray - the value for the argumentArray record component
      throwableProxy - the value for the throwableProxy record component
      markerList - the value for the markerList record component
      mdcPropertyMap - the value for the mdcPropertyMap record component
      timeStamp - the value for the timeStamp record component
      nanoseconds - the value for the nanoseconds record component
      sequenceNumber - the value for the sequenceNumber record component
      keyValuePairs - the value for the keyValuePairs record component
      koraMdc - the value for the koraMdc record component
  • Method Details

    • getThreadName

      public String getThreadName()
      Specified by:
      getThreadName in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getLevel

      public ch.qos.logback.classic.Level getLevel()
      Specified by:
      getLevel in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getMessage

      public String getMessage()
      Specified by:
      getMessage in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getArgumentArray

      public Object[] getArgumentArray()
      Specified by:
      getArgumentArray in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getFormattedMessage

      public String getFormattedMessage()
      Specified by:
      getFormattedMessage in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getLoggerName

      public String getLoggerName()
      Specified by:
      getLoggerName in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getLoggerContextVO

      public ch.qos.logback.classic.spi.LoggerContextVO getLoggerContextVO()
      Specified by:
      getLoggerContextVO in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getThrowableProxy

      public ch.qos.logback.classic.spi.IThrowableProxy getThrowableProxy()
      Specified by:
      getThrowableProxy in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getCallerData

      public StackTraceElement[] getCallerData()
      Specified by:
      getCallerData in interface ch.qos.logback.classic.spi.ILoggingEvent
    • hasCallerData

      public boolean hasCallerData()
      Specified by:
      hasCallerData in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getMarkerList

      public List<org.slf4j.Marker> getMarkerList()
      Specified by:
      getMarkerList in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getMDCPropertyMap

      public Map<String,String> getMDCPropertyMap()
      Specified by:
      getMDCPropertyMap in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getMdc

      public Map<String,String> getMdc()
      Specified by:
      getMdc in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getTimeStamp

      public long getTimeStamp()
      Specified by:
      getTimeStamp in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getNanoseconds

      public int getNanoseconds()
      Specified by:
      getNanoseconds in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getSequenceNumber

      public long getSequenceNumber()
      Specified by:
      getSequenceNumber in interface ch.qos.logback.classic.spi.ILoggingEvent
    • getKeyValuePairs

      public List<org.slf4j.event.KeyValuePair> getKeyValuePairs()
      Specified by:
      getKeyValuePairs in interface ch.qos.logback.classic.spi.ILoggingEvent
    • prepareForDeferredProcessing

      public void prepareForDeferredProcessing()
      Specified by:
      prepareForDeferredProcessing in interface ch.qos.logback.core.spi.DeferredProcessingAware
      Specified by:
      prepareForDeferredProcessing in interface ch.qos.logback.classic.spi.ILoggingEvent
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • threadName

      public String threadName()
      Returns the value of the threadName record component.
      Returns:
      the value of the threadName record component
    • loggerName

      public String loggerName()
      Returns the value of the loggerName record component.
      Returns:
      the value of the loggerName record component
    • loggerContextVO

      public ch.qos.logback.classic.spi.LoggerContextVO loggerContextVO()
      Returns the value of the loggerContextVO record component.
      Returns:
      the value of the loggerContextVO record component
    • level

      public ch.qos.logback.classic.Level level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • message

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

      public String formattedMessage()
      Returns the value of the formattedMessage record component.
      Returns:
      the value of the formattedMessage record component
    • argumentArray

      public Object[] argumentArray()
      Returns the value of the argumentArray record component.
      Returns:
      the value of the argumentArray record component
    • throwableProxy

      public ch.qos.logback.classic.spi.IThrowableProxy throwableProxy()
      Returns the value of the throwableProxy record component.
      Returns:
      the value of the throwableProxy record component
    • markerList

      public List<org.slf4j.Marker> markerList()
      Returns the value of the markerList record component.
      Returns:
      the value of the markerList record component
    • mdcPropertyMap

      public Map<String,String> mdcPropertyMap()
      Returns the value of the mdcPropertyMap record component.
      Returns:
      the value of the mdcPropertyMap record component
    • timeStamp

      public long timeStamp()
      Returns the value of the timeStamp record component.
      Returns:
      the value of the timeStamp record component
    • nanoseconds

      public int nanoseconds()
      Returns the value of the nanoseconds record component.
      Returns:
      the value of the nanoseconds record component
    • sequenceNumber

      public long sequenceNumber()
      Returns the value of the sequenceNumber record component.
      Returns:
      the value of the sequenceNumber record component
    • keyValuePairs

      public List<org.slf4j.event.KeyValuePair> keyValuePairs()
      Returns the value of the keyValuePairs record component.
      Returns:
      the value of the keyValuePairs record component
    • koraMdc

      public Map<String,ru.tinkoff.kora.logging.common.arg.StructuredArgumentWriter> koraMdc()
      Returns the value of the koraMdc record component.
      Returns:
      the value of the koraMdc record component