SLF4J

zio.logging.backend.SLF4J
object SLF4J

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
SLF4J.type

Members list

Value members

Concrete methods

def getLoggerName(default: String): Trace => String

get logger name from Trace

get logger name from Trace

trace with value ''example.LivePingService.ping(PingService.scala:22)'' will have ''example.LivePingService'' as logger name

Attributes

def logMarkerName(value: String): ZIOAspect[Nothing, Any, Nothing, Any, Nothing, Any]

slf4j marker name aspect

slf4j marker name aspect

annotation key: SLF4J.logMarkerNameAnnotationKey

Attributes

def slf4j(format: LogFormat, loggerName: Trace => String, causeToThrowable: (Cause[Any]) => Option[Throwable]): ZLayer[Any, Nothing, Unit]

Use this layer to register an use an Slf4j logger in your app. To avoid double logging, you should create this layer only once in your application

Use this layer to register an use an Slf4j logger in your app. To avoid double logging, you should create this layer only once in your application

Attributes

def slf4j(format: LogFormat): ZLayer[Any, Nothing, Unit]

Use this layer to register an use an Slf4j logger in your app. To avoid double logging, you should create this layer only once in your application

Use this layer to register an use an Slf4j logger in your app. To avoid double logging, you should create this layer only once in your application

Attributes

def slf4j: ZLayer[Any, Nothing, Unit]

Use this layer to register an use an Slf4j logger in your app. To avoid double logging, you should create this layer only once in your application

Use this layer to register an use an Slf4j logger in your app. To avoid double logging, you should create this layer only once in your application

Attributes

def slf4jLogger(format: LogFormat, loggerName: Trace => String, causeToThrowable: (Cause[Any]) => Option[Throwable]): ZLogger[String, Unit]

Concrete fields

convert zio.Cause to java.lang.Throwable using zio.FiberFailure

convert zio.Cause to java.lang.Throwable using zio.FiberFailure

Attributes

default log format for slf4j logger

default log format for slf4j logger

Attributes

log annotation key for slf4j marker name

log annotation key for slf4j marker name

Attributes