object log extends LogZIOImpl
Lets you carry LogZIO capability in environment
import logstage.LogZIO import logstage.LogZIO.log import zio.URIO def fn: URIO[LogZIO, Unit] = { log.info(s"I'm logging with ${log}stage!") }
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- log
- LogZIOImpl
- LogIO
- AbstractMacroLogIO
- EncodingAwareAbstractLogIO
- AbstractLogIO
- UnsafeLogIO
- LogCreateIO
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type Self[f[_]] = LogIO[f]
- Definition Classes
- LogIO → EncodingAwareAbstractLogIO → AbstractLogIO
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 acceptable(logLevel: logstage.Level)(implicit pos: CodePositionMaterializer): ZIO[LogIO3[ZIO], Nothing, Boolean]
Check if this class/package is allowed to log messages at or above
logLevel
Check if this class/package is allowed to log messages at or above
logLevel
- Definition Classes
- LogZIOImpl → UnsafeLogIO
- final def acceptable(loggerId: LoggerId, logLevel: logstage.Level): ZIO[LogIO3[ZIO], Nothing, Boolean]
Check if
loggerId
is not blacklisted andlogLevel
is at or above the configured thresholdCheck if
loggerId
is not blacklisted andlogLevel
is at or above the configured threshold- Definition Classes
- LogZIOImpl → UnsafeLogIO
- final def apply(context: Map[String, AnyEncoded]): Self[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]
- Definition Classes
- EncodingAwareAbstractLogIO
- final def apply(context: (String, AnyEncoded)*): Self[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]
- Definition Classes
- EncodingAwareAbstractLogIO
- final def apply(context: CustomContext): Self[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]
- Definition Classes
- AbstractLogIO
- 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 createContext(logLevel: logstage.Level, customContext: CustomContext)(implicit pos: CodePositionMaterializer): ZIO[LogIO3[ZIO], Nothing, Context]
- Definition Classes
- LogZIOImpl → LogCreateIO
- final def createEntry(logLevel: logstage.Level, message: Message)(implicit pos: CodePositionMaterializer): ZIO[LogIO3[ZIO], Nothing, Entry]
- Definition Classes
- LogZIOImpl → LogCreateIO
- final macro def crit(message: String): ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, Unit]
- Definition Classes
- AbstractMacroLogIO
- final macro def debug(message: String): ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, Unit]
- Definition Classes
- AbstractMacroLogIO
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final macro def error(message: String): ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, Unit]
- Definition Classes
- AbstractMacroLogIO
- 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()
- final macro def info(message: String): ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, Unit]
- Definition Classes
- AbstractMacroLogIO
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def log(logLevel: logstage.Level)(messageThunk: => Message)(implicit pos: CodePositionMaterializer): ZIO[LogIO3[ZIO], Nothing, Unit]
- Definition Classes
- LogZIOImpl → AbstractLogIO
- final def log(entry: Entry): ZIO[LogIO3[ZIO], Nothing, Unit]
- Definition Classes
- LogZIOImpl → AbstractLogIO
- 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 raw: logstage.LogIORaw[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$], AnyEncoded]
- Definition Classes
- LogIO
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final macro def trace(message: String): ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, Unit]
Aliases for AbstractLogIO#log(entry:* that look better in Intellij
Aliases for AbstractLogIO#log(entry:* that look better in Intellij
- Definition Classes
- AbstractMacroLogIO
- final def unsafeLog(entry: Entry): ZIO[LogIO3[ZIO], Nothing, Unit]
Log irrespective of the log level threshold
Log irrespective of the log level threshold
- Definition Classes
- LogZIOImpl → UnsafeLogIO
- 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()
- final macro def warn(message: String): ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, Unit]
- Definition Classes
- AbstractMacroLogIO
- def widen[G[_]](implicit ev: <:<[ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, AnyRef], G[AnyRef]]): LogIO[G]
- Definition Classes
- LogIO → AbstractLogIO → UnsafeLogIO → LogCreateIO
- final def withCustomContext(context: CustomContext): LogIO2[[β$0$, γ$1$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], β$0$, γ$1$]]
- Definition Classes
- LogZIOImpl → AbstractLogIO
- final def withCustomContext(context: (String, AnyEncoded)*): Self[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]
- Definition Classes
- EncodingAwareAbstractLogIO
- final def withCustomContextMap(context: Map[String, AnyEncoded]): Self[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]
- Definition Classes
- EncodingAwareAbstractLogIO