Packages

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
LogZIOImpl, LogIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]], AbstractMacroLogIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]], EncodingAwareAbstractLogIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$], AnyEncoded], AbstractLogIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]], UnsafeLogIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]], LogCreateIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. log
  2. LogZIOImpl
  3. LogIO
  4. AbstractMacroLogIO
  5. EncodingAwareAbstractLogIO
  6. AbstractLogIO
  7. UnsafeLogIO
  8. LogCreateIO
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Self[f[_]] = LogIO[f]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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
  5. final def acceptable(loggerId: LoggerId, logLevel: logstage.Level): ZIO[LogIO3[ZIO], Nothing, Boolean]

    Check if loggerId is not blacklisted and logLevel is at or above the configured threshold

    Check if loggerId is not blacklisted and logLevel is at or above the configured threshold

    Definition Classes
    LogZIOImpl → UnsafeLogIO
  6. final def apply(context: Map[String, AnyEncoded]): Self[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]
    Definition Classes
    EncodingAwareAbstractLogIO
  7. final def apply(context: (String, AnyEncoded)*): Self[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]
    Definition Classes
    EncodingAwareAbstractLogIO
  8. final def apply(context: CustomContext): Self[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]
    Definition Classes
    AbstractLogIO
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. final def createContext(logLevel: logstage.Level, customContext: CustomContext)(implicit pos: CodePositionMaterializer): ZIO[LogIO3[ZIO], Nothing, Context]
    Definition Classes
    LogZIOImpl → LogCreateIO
  12. final def createEntry(logLevel: logstage.Level, message: Message)(implicit pos: CodePositionMaterializer): ZIO[LogIO3[ZIO], Nothing, Entry]
    Definition Classes
    LogZIOImpl → LogCreateIO
  13. final macro def crit(message: String): ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, Unit]
    Definition Classes
    AbstractMacroLogIO
  14. final macro def debug(message: String): ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, Unit]
    Definition Classes
    AbstractMacroLogIO
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. final macro def error(message: String): ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, Unit]
    Definition Classes
    AbstractMacroLogIO
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final macro def info(message: String): ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, Unit]
    Definition Classes
    AbstractMacroLogIO
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def log(logLevel: logstage.Level)(messageThunk: => Message)(implicit pos: CodePositionMaterializer): ZIO[LogIO3[ZIO], Nothing, Unit]
    Definition Classes
    LogZIOImpl → AbstractLogIO
  24. final def log(entry: Entry): ZIO[LogIO3[ZIO], Nothing, Unit]
    Definition Classes
    LogZIOImpl → AbstractLogIO
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def raw: logstage.LogIORaw[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$], AnyEncoded]
    Definition Classes
    LogIO
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. 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
  32. 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
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. final macro def warn(message: String): ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, Unit]
    Definition Classes
    AbstractMacroLogIO
  37. def widen[G[_]](implicit ev: <:<[ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, AnyRef], G[AnyRef]]): LogIO[G]
    Definition Classes
    LogIOAbstractLogIOUnsafeLogIOLogCreateIO
  38. final def withCustomContext(context: CustomContext): LogIO2[[β$0$, γ$1$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], β$0$, γ$1$]]
    Definition Classes
    LogZIOImpl → AbstractLogIO
  39. final def withCustomContext(context: (String, AnyEncoded)*): Self[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]
    Definition Classes
    EncodingAwareAbstractLogIO
  40. final def withCustomContextMap(context: Map[String, AnyEncoded]): Self[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]
    Definition Classes
    EncodingAwareAbstractLogIO

Inherited from LogZIOImpl

Inherited from LogIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]

Inherited from AbstractMacroLogIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]

Inherited from EncodingAwareAbstractLogIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$], AnyEncoded]

Inherited from AbstractLogIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]

Inherited from UnsafeLogIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]

Inherited from LogCreateIO[[β$0$]ZIO[LogIO[[γ$1$]ZIO[Any, Nothing, γ$1$]], Nothing, β$0$]]

Inherited from AnyRef

Inherited from Any

Ungrouped