Package ru.tinkoff.kora.logging.logback
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 Summary
ConstructorsConstructorDescriptionKoraLoggingEvent(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 aKoraLoggingEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionObject[]Returns the value of theargumentArrayrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theformattedMessagerecord component.Object[]List<org.slf4j.event.KeyValuePair>ch.qos.logback.classic.LevelgetLevel()ch.qos.logback.classic.spi.LoggerContextVOList<org.slf4j.Marker>getMdc()intlongch.qos.logback.classic.spi.IThrowableProxylongbooleanfinal inthashCode()Returns a hash code value for this object.List<org.slf4j.event.KeyValuePair>Returns the value of thekeyValuePairsrecord component.koraMdc()Returns the value of thekoraMdcrecord component.ch.qos.logback.classic.Levellevel()Returns the value of thelevelrecord component.ch.qos.logback.classic.spi.LoggerContextVOReturns the value of theloggerContextVOrecord component.Returns the value of theloggerNamerecord component.List<org.slf4j.Marker>Returns the value of themarkerListrecord component.Returns the value of themdcPropertyMaprecord component.message()Returns the value of themessagerecord component.intReturns the value of thenanosecondsrecord component.voidlongReturns the value of thesequenceNumberrecord component.Returns the value of thethreadNamerecord component.ch.qos.logback.classic.spi.IThrowableProxyReturns the value of thethrowableProxyrecord component.longReturns the value of thetimeStamprecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.qos.logback.classic.spi.ILoggingEvent
getInstant, getMarker
-
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 aKoraLoggingEventrecord class.- Parameters:
threadName- the value for thethreadNamerecord componentloggerName- the value for theloggerNamerecord componentloggerContextVO- the value for theloggerContextVOrecord componentlevel- the value for thelevelrecord componentmessage- the value for themessagerecord componentformattedMessage- the value for theformattedMessagerecord componentargumentArray- the value for theargumentArrayrecord componentthrowableProxy- the value for thethrowableProxyrecord componentmarkerList- the value for themarkerListrecord componentmdcPropertyMap- the value for themdcPropertyMaprecord componenttimeStamp- the value for thetimeStamprecord componentnanoseconds- the value for thenanosecondsrecord componentsequenceNumber- the value for thesequenceNumberrecord componentkeyValuePairs- the value for thekeyValuePairsrecord componentkoraMdc- the value for thekoraMdcrecord component
-
-
Method Details
-
getThreadName
- Specified by:
getThreadNamein interfacech.qos.logback.classic.spi.ILoggingEvent
-
getLevel
public ch.qos.logback.classic.Level getLevel()- Specified by:
getLevelin interfacech.qos.logback.classic.spi.ILoggingEvent
-
getMessage
- Specified by:
getMessagein interfacech.qos.logback.classic.spi.ILoggingEvent
-
getArgumentArray
- Specified by:
getArgumentArrayin interfacech.qos.logback.classic.spi.ILoggingEvent
-
getFormattedMessage
- Specified by:
getFormattedMessagein interfacech.qos.logback.classic.spi.ILoggingEvent
-
getLoggerName
- Specified by:
getLoggerNamein interfacech.qos.logback.classic.spi.ILoggingEvent
-
getLoggerContextVO
public ch.qos.logback.classic.spi.LoggerContextVO getLoggerContextVO()- Specified by:
getLoggerContextVOin interfacech.qos.logback.classic.spi.ILoggingEvent
-
getThrowableProxy
public ch.qos.logback.classic.spi.IThrowableProxy getThrowableProxy()- Specified by:
getThrowableProxyin interfacech.qos.logback.classic.spi.ILoggingEvent
-
getCallerData
- Specified by:
getCallerDatain interfacech.qos.logback.classic.spi.ILoggingEvent
-
hasCallerData
public boolean hasCallerData()- Specified by:
hasCallerDatain interfacech.qos.logback.classic.spi.ILoggingEvent
-
getMarkerList
- Specified by:
getMarkerListin interfacech.qos.logback.classic.spi.ILoggingEvent
-
getMDCPropertyMap
- Specified by:
getMDCPropertyMapin interfacech.qos.logback.classic.spi.ILoggingEvent
-
getMdc
- Specified by:
getMdcin interfacech.qos.logback.classic.spi.ILoggingEvent
-
getTimeStamp
public long getTimeStamp()- Specified by:
getTimeStampin interfacech.qos.logback.classic.spi.ILoggingEvent
-
getNanoseconds
public int getNanoseconds()- Specified by:
getNanosecondsin interfacech.qos.logback.classic.spi.ILoggingEvent
-
getSequenceNumber
public long getSequenceNumber()- Specified by:
getSequenceNumberin interfacech.qos.logback.classic.spi.ILoggingEvent
-
getKeyValuePairs
- Specified by:
getKeyValuePairsin interfacech.qos.logback.classic.spi.ILoggingEvent
-
prepareForDeferredProcessing
public void prepareForDeferredProcessing()- Specified by:
prepareForDeferredProcessingin interfacech.qos.logback.core.spi.DeferredProcessingAware- Specified by:
prepareForDeferredProcessingin interfacech.qos.logback.classic.spi.ILoggingEvent
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
threadName
Returns the value of thethreadNamerecord component.- Returns:
- the value of the
threadNamerecord component
-
loggerName
Returns the value of theloggerNamerecord component.- Returns:
- the value of the
loggerNamerecord component
-
loggerContextVO
public ch.qos.logback.classic.spi.LoggerContextVO loggerContextVO()Returns the value of theloggerContextVOrecord component.- Returns:
- the value of the
loggerContextVOrecord component
-
level
public ch.qos.logback.classic.Level level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
formattedMessage
Returns the value of theformattedMessagerecord component.- Returns:
- the value of the
formattedMessagerecord component
-
argumentArray
Returns the value of theargumentArrayrecord component.- Returns:
- the value of the
argumentArrayrecord component
-
throwableProxy
public ch.qos.logback.classic.spi.IThrowableProxy throwableProxy()Returns the value of thethrowableProxyrecord component.- Returns:
- the value of the
throwableProxyrecord component
-
markerList
Returns the value of themarkerListrecord component.- Returns:
- the value of the
markerListrecord component
-
mdcPropertyMap
Returns the value of themdcPropertyMaprecord component.- Returns:
- the value of the
mdcPropertyMaprecord component
-
timeStamp
public long timeStamp()Returns the value of thetimeStamprecord component.- Returns:
- the value of the
timeStamprecord component
-
nanoseconds
public int nanoseconds()Returns the value of thenanosecondsrecord component.- Returns:
- the value of the
nanosecondsrecord component
-
sequenceNumber
public long sequenceNumber()Returns the value of thesequenceNumberrecord component.- Returns:
- the value of the
sequenceNumberrecord component
-
keyValuePairs
Returns the value of thekeyValuePairsrecord component.- Returns:
- the value of the
keyValuePairsrecord component
-
koraMdc
Returns the value of thekoraMdcrecord component.- Returns:
- the value of the
koraMdcrecord component
-