Slf4jMagnumLogger

com.augustnagro.magnum.ziomagnum.Slf4jMagnumLogger

SLF4J-based implementation of the SqlLogger trait.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self 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 SqlLogger
class Object
trait Matchable
class Any

Value members

Concrete methods

def live(name: String = ...): ZLayer[Any, Nothing, SqlLogger]

Provides a ZLayer that supplies a SLF4J-based SqlLogger implementation.

Provides a ZLayer that supplies a SLF4J-based SqlLogger implementation.

Attributes

def logSlowQueries(slowerThan: FiniteDuration, name: String = ...): SqlLogger

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

def slf4jLogger(name: String): ULayer[Logger]