final case class LoggerWithFormat[R, A](contextRef: FiberRef[LogContext], appender: Service[A]) extends Logger[A] with Product with Serializable
- Alphabetic
- By Inheritance
- LoggerWithFormat
- Serializable
- Serializable
- Product
- Equals
- Logger
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LoggerWithFormat(contextRef: FiberRef[LogContext], appender: Service[A])
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
- val appender: Service[A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val contextRef: FiberRef[LogContext]
-
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.
Produces a new logger by adapting a different input type to the input type of this logger.
- Definition Classes
- Logger
-
def
debug(line: ⇒ A): UIO[Unit]
Logs the specified element at the debug level.
Logs the specified element at the debug level.
- Definition Classes
- 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
Evaluates the specified element based on the LogLevel set and logs at the debug level
- Definition Classes
- Logger
-
def
derive(f: (LogContext) ⇒ LogContext): Logger[A]
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
- 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.
Derives a new logger from this one, by applying the specified decorator to the logger context.
- Definition Classes
- Logger
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
error(line: ⇒ A, cause: Cause[Any]): UIO[Unit]
Logs the specified element at the error level with cause.
Logs the specified element at the error level with cause.
- Definition Classes
- Logger
-
def
error(line: ⇒ A): UIO[Unit]
Logs the specified element at the error level.
Logs the specified element at the error level.
- Definition Classes
- 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
Evaluates the specified element based on the LogLevel set and logs at the error level
- Definition Classes
- 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
Evaluates the specified element based on the LogLevel set and logs at the error level
- Definition Classes
- Logger
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
info(line: ⇒ A): UIO[Unit]
Logs the specified element at the info level
Logs the specified element at the info level
- Definition Classes
- 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
Evaluates the specified element based on the LogLevel set and logs at the info level
- Definition Classes
- Logger
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
- LoggerWithFormat → 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.
Modifies the annotate in the scope of the specified effect.
- Definition Classes
- 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.
Modifies the log context with effect in the scope of the specified effect.
- Definition Classes
- Logger
-
def
locallyManaged[R1, E, A1](f: (LogContext) ⇒ LogContext)(managed: ZManaged[R1, E, A1]): ZManaged[R1, E, A1]
Modify log context in scope of Managed operation.
Modify log context in scope of Managed operation.
- Definition Classes
- Logger
-
def
locallyZStream[R1, E, A1](f: (LogContext) ⇒ LogContext)(stream: ZStream[R1, E, A1]): ZStream[R1, E, A1]
Modify log context in scope of ZStream.
Modify log context in scope of ZStream.
- Definition Classes
- Logger
-
def
log(line: ⇒ A): UIO[Unit]
Logs the specified element using an inherited log level.
Logs the specified element using an inherited log level.
- Definition Classes
- LoggerWithFormat → Logger
-
def
log(level: LogLevel)(line: ⇒ A): 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
- Logger
-
def
logContext: UIO[LogContext]
Retrieves the log context.
Retrieves the log context.
- Definition Classes
- LoggerWithFormat → Logger
-
def
named(name: String): Logger[A]
Produces a named logger.
Produces a named logger.
- Definition Classes
- Logger
-
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: ⇒ A, t: Throwable): UIO[Unit]
Logs the specified element at the error level with exception.
Logs the specified element at the error level with exception.
- Definition Classes
- Logger
-
def
trace(line: ⇒ A): UIO[Unit]
Logs the specified element at the trace level.
Logs the specified element at the trace level.
- Definition Classes
- 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
Evaluates the specified element based on the LogLevel set and logs at the trace level
- Definition Classes
- Logger
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
warn(line: ⇒ A): UIO[Unit]
Logs the specified element at the warn level.
Logs the specified element at the warn level.
- Definition Classes
- 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
Evaluates the specified element based on the LogLevel set and logs at the warn level
- Definition Classes
- Logger