package api
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- api
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- case class LogMessage(text: String, level: Level, suppressed: Boolean = false) extends Product with Serializable
- implicit final class LogMessageInterpolator extends AnyVal
- case class LogSpec[-E, -A](onError: List[(Duration, E) => LogMessage] = Nil, onSucceed: List[(Duration, A) => LogMessage] = Nil, onTermination: List[(Duration, Cause[Nothing]) => LogMessage] = Nil) extends Product with Serializable
- type Logging = Has[Service[Any]]
- trait LoggingSupport extends AnyRef
- Annotations
- @silent("inferred to be `Any`")
- abstract class MDZIO extends AnyRef
Convenience APIs for interacting with the MDC context.
Convenience APIs for interacting with the MDC context.
Important
Make sure that you use a fiber aware MDC implementation, as provided for example by zio-interop-log4j2. Using the convenience wrappers found here won't make the underlying MDC context implementation aware of ZIO fibers.
- Annotations
- @silent("JavaConverters")
- implicit final class Slf4jLoggerOps extends AnyRef
- implicit final class ZioLoggingOps[R, E, A] extends AnyRef
Value Members
- def getLogger(name: String): Logger
- def getLogger(clazz: Class[_]): Logger
- def getLogger[T](implicit classTag: ClassTag[T]): Logger
- val logging: Service[Logging]
- def makeLogger[T](clazz: Class[_]): UIO[Logger]
- def makeLogger[T](implicit classTag: ClassTag[T]): UIO[Logger]
- def makeLogger(name: String): UIO[Logger]
- object LogMessage extends Serializable
- object LogSpec extends Serializable
- object Logging
- object MDZIO extends MDZIO
See also Logging.Service.mdzio if you want all logging related calls go through the service.