trait Logger extends LoggerLike[String]
A logger of strings.
- Alphabetic
- By Inheritance
- Logger
- LoggerLike
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract 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.
Modifies the log context in the scope of the specified effect.
- Definition Classes
- LoggerLike
- abstract def log(line: => String): UIO[Unit]
Logs the specified element using an inherited log level.
Logs the specified element using an inherited log level.
- Definition Classes
- LoggerLike
- abstract def logContext: UIO[LogContext]
Retrieves the log context.
Retrieves the log context.
- Definition Classes
- LoggerLike
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def contramap[A1](f: (A1) => String): LoggerLike[A1]
Produces a new logger by adapting a different input type to the input type of this logger.
Produces a new logger by adapting a different input type to the input type of this logger.
- Definition Classes
- LoggerLike
- def debug(line: => String): UIO[Unit]
Logs the specified element at the debug level.
Logs the specified element at the debug level.
- Definition Classes
- LoggerLike
- def derive(f: (LogContext) => LogContext): LoggerLike[String]
Derives a new logger from this one, by applying the specified decorator to the logger context.
Derives a new logger from this one, by applying the specified decorator to the logger context.
- Definition Classes
- LoggerLike
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(line: => String, cause: Cause[Any]): ZIO[Any, Nothing, Unit]
Logs the specified element at the error level with cause.
Logs the specified element at the error level with cause.
- Definition Classes
- LoggerLike
- def error(line: => String): UIO[Unit]
Logs the specified element at the error level.
Logs the specified element at the error level.
- Definition Classes
- LoggerLike
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def info(line: => String): UIO[Unit]
Logs the specified element at the info level
Logs the specified element at the info level
- Definition Classes
- LoggerLike
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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.
Modifies the annotate in the scope of the specified effect.
- Definition Classes
- LoggerLike
- 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.
Modifies the log context with effect in the scope of the specified effect.
- Definition Classes
- LoggerLike
- def log(level: LogLevel)(line: => String): UIO[Unit]
Logs the specified element at the specified level.
Logs the specified element at the specified level. Implementations may override this for greater efficiency.
- Definition Classes
- LoggerLike
- def named(name: String): LoggerLike[String]
Produces a named logger.
Produces a named logger.
- Definition Classes
- LoggerLike
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def throwable(line: => String, t: Throwable): ZIO[Any, Nothing, Unit]
Logs the specified element at the error level with exception.
Logs the specified element at the error level with exception.
- Definition Classes
- LoggerLike
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trace(line: => String): UIO[Unit]
Logs the specified element at the trace level.
Logs the specified element at the trace level.
- Definition Classes
- LoggerLike
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def warn(line: => String): UIO[Unit]
Logs the specified element at the warn level.
Logs the specified element at the warn level.
- Definition Classes
- LoggerLike