Skip to content

Commit

Permalink
Logback & slf4j version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grryum committed Nov 22, 2023
1 parent 79fc2ae commit 1c1efaa
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import ch.qos.logback.classic.Logger
import ch.qos.logback.classic.spi.ILoggingEvent
import ch.qos.logback.core.read.ListAppender
import derevo.derive
import ch.qos.logback.classic.LoggerContext
import org.slf4j.LoggerFactory
import tofu.logging.derivation.loggable
import zio.{Clock, FiberRef, LogSpan, ULayer, ZIO, ZLayer}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import java.util
import ch.qos.logback.classic.{Level, PatternLayout}
import ch.qos.logback.classic.spi.{ILoggingEvent, IThrowableProxy, LoggerContextVO}
import org.slf4j.Marker
import org.slf4j.event.KeyValuePair
import tofu.logging.LoggedValue
import tofu.logging.impl.ContextMarker

Expand Down Expand Up @@ -38,18 +39,21 @@ class WrappedEvent(event: ILoggingEvent) extends ILoggingEvent {
map
}

def getThreadName: String = event.getThreadName
def getLevel: Level = event.getLevel
def getMessage: String = event.getMessage
def getArgumentArray: Array[AnyRef] = event.getArgumentArray
def getFormattedMessage: String = event.getFormattedMessage
def getLoggerName: String = event.getLoggerName
def getLoggerContextVO: LoggerContextVO = event.getLoggerContextVO
def getThrowableProxy: IThrowableProxy = event.getThrowableProxy
def getCallerData: Array[StackTraceElement] = event.getCallerData
def hasCallerData: Boolean = event.hasCallerData
def getMarker: Marker = event.getMarker
def getMdc: util.Map[String, String] = getMDCPropertyMap
def getTimeStamp: Long = event.getTimeStamp
def prepareForDeferredProcessing(): Unit = event.prepareForDeferredProcessing()
def getThreadName: String = event.getThreadName
def getLevel: Level = event.getLevel
def getMessage: String = event.getMessage
def getArgumentArray: Array[AnyRef] = event.getArgumentArray
def getFormattedMessage: String = event.getFormattedMessage
def getLoggerName: String = event.getLoggerName
def getLoggerContextVO: LoggerContextVO = event.getLoggerContextVO
def getThrowableProxy: IThrowableProxy = event.getThrowableProxy
def getCallerData: Array[StackTraceElement] = event.getCallerData
def hasCallerData: Boolean = event.hasCallerData
def getMarkerList: util.List[Marker] = event.getMarkerList
def getMdc: util.Map[String, String] = getMDCPropertyMap
def getTimeStamp: Long = event.getTimeStamp
def getNanoseconds: Int = event.getNanoseconds
def getSequenceNumber: Long = event.getSequenceNumber
def getKeyValuePairs: util.List[KeyValuePair] = event.getKeyValuePairs
def prepareForDeferredProcessing(): Unit = event.prepareForDeferredProcessing()
}
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ object Dependencies {

val derevo = "0.13.0"

val slf4j = "1.7.36"
val slf4j = "2.0.9"

val fs2 = "2.5.11"

val fs2CE3 = "3.7.0"

val logback = "1.2.12"
val logback = "1.4.11"

val monix = "3.4.1"

Expand Down

0 comments on commit 1c1efaa

Please sign in to comment.