Slf4jMagnumLogger
com.augustnagro.magnum.ziomagnum.Slf4jMagnumLogger
object Slf4jMagnumLogger
SLF4J-based implementation of the SqlLogger trait.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Slf4jMagnumLogger.type
Members list
Type members
Classlikes
class Slf4jMagnumLogger(name: String = ...) extends SqlLogger
Default implementation of the SqlLogger trait.
Default implementation of the SqlLogger trait.
Attributes
- Supertypes
-
trait SqlLoggerclass Objecttrait Matchableclass Any
Value members
Concrete methods
Provides a ZLayer that supplies a SLF4J-based SqlLogger implementation.
Provides a ZLayer that supplies a SLF4J-based SqlLogger implementation.
Attributes
Creates a logger that only logs slow queries.
Creates a logger that only logs slow queries.
Attributes
def logSlowQueriesLive(slowerThan: FiniteDuration, name: String = ...): ZLayer[Any, Nothing, SqlLogger]
Provides a ZLayer that supplies a SLF4J-based SqlLogger implementation, that only logs queries that exceed the specified duration threshold.
Provides a ZLayer that supplies a SLF4J-based SqlLogger implementation, that only logs queries that exceed the specified duration threshold.
Value parameters
- slowerThan
-
Duration threshold for logging slow queries.
Attributes
In this article