LoggerWithFormat

final case class LoggerWithFormat[R, A](contextRef: FiberRef[LogContext], appender: Service[A]) extends Logger[A]
trait Serializable
trait Product
trait Equals
trait Logger[A]
class Object
trait Matchable
class Any

Value members

Methods

override def locally[R1, E, A1](f: LogContext => LogContext)(zio: ZIO[R1, E, A1]): ZIO[R1, E, A1]

Modifies the log context in the scope of the specified effect.

Definition Classes
override def log(line: => A): UIO[Unit]

Logs the specified element using an inherited log level.

Definition Classes
override def logContext: UIO[LogContext]

Retrieves the log context.

Definition Classes

Inherited methods

final def contramap[A1](f: A1 => A): Logger[A1]

Produces a new logger by adapting a different input type to the input type of this logger.

Inherited from
Logger
def debug(line: => A): UIO[Unit]

Logs the specified element at the debug level.

Inherited from
Logger
def debugM[R, E](line: ZIO[R, E, A]): ZIO[R, E, Unit]

Evaluates the specified element based on the LogLevel set and logs at the debug level

Inherited from
Logger

Derives a new logger from this one, by applying the specified decorator to the logger context.

Inherited from
Logger
def deriveM[R](f: LogContext => ZIO[R, Nothing, LogContext]): ZIO[R, Nothing, Logger[A]]

Derives a new logger from this one, by applying the specified decorator to the logger context.

Inherited from
Logger
def error(line: => A, cause: Cause[Any]): UIO[Unit]

Logs the specified element at the error level with cause.

Inherited from
Logger
def error(line: => A): UIO[Unit]

Logs the specified element at the error level.

Inherited from
Logger
def errorM[R, E](line: ZIO[R, E, A], cause: Cause[Any]): ZIO[R, E, Unit]

Evaluates the specified element based on the LogLevel set and logs at the error level

Inherited from
Logger
def errorM[R, E](line: ZIO[R, E, A]): ZIO[R, E, Unit]

Evaluates the specified element based on the LogLevel set and logs at the error level

Inherited from
Logger
def info(line: => A): UIO[Unit]

Logs the specified element at the info level

Inherited from
Logger
def infoM[R, E](line: ZIO[R, E, A]): ZIO[R, E, Unit]

Evaluates the specified element based on the LogLevel set and logs at the info level

Inherited from
Logger
final def locallyAnnotate[B, R, E, A1](annotation: LogAnnotation[B], value: B)(zio: ZIO[R, E, A1]): ZIO[R, E, A1]

Modifies the annotate in the scope of the specified effect.

Inherited from
Logger
def locallyM[R1, E, A1](f: LogContext => URIO[R1, LogContext])(zio: ZIO[R1, E, A1]): ZIO[R1, E, A1]

Modifies the log context with effect in the scope of the specified effect.

Inherited from
Logger
def log(level: LogLevel)(line: => A): UIO[Unit]

Logs the specified element at the specified level. Implementations may override this for greater efficiency.

Inherited from
Logger
def named(name: String): Logger[A]

Produces a named logger.

Inherited from
Logger
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def throwable(line: => A, t: Throwable): UIO[Unit]

Logs the specified element at the error level with exception.

Inherited from
Logger
def trace(line: => A): UIO[Unit]

Logs the specified element at the trace level.

Inherited from
Logger
def traceM[R, E](line: ZIO[R, E, A]): ZIO[R, E, Unit]

Evaluates the specified element based on the LogLevel set and logs at the trace level

Inherited from
Logger
def warn(line: => A): UIO[Unit]

Logs the specified element at the warn level.

Inherited from
Logger
def warnM[R, E](line: ZIO[R, E, A]): ZIO[R, E, Unit]

Evaluates the specified element based on the LogLevel set and logs at the warn level

Inherited from
Logger