log

logstage.LogZIO.log
object log

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!")
 }

Attributes

Graph
Supertypes
trait LogIO[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3]]
trait AbstractMacroLogIO[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3]]
trait EncodingAwareAbstractLogIO[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3], AnyEncoded]
trait AbstractLogIO[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3]]
trait UnsafeLogIO[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3]]
trait LogCreateIO[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3]]
class Object
trait Matchable
class Any
Show all
Self type
log.type

Members list

Type members

Inherited types

override type EncMode = NonStrict.type

Attributes

Inherited from:
LogIO
override type Self[f[_]] = LogIO[f]

Attributes

Inherited from:
LogIO

Value members

Inherited methods

override def acceptable(position: CodePosition, logLevel: Level): ZIO[LogIO3[ZIO], Nothing, Boolean]

Check if this code position is not blacklisted and logLevel is at or above the configured threshold

Check if this code position is not blacklisted and logLevel is at or above the configured threshold

Attributes

Definition Classes
LogZIOImpl -> UnsafeLogIO
Inherited from:
LogZIOImpl (hidden)
final def apply(context: Map[String, AnyEncoded]): Self[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3]]

Attributes

Inherited from:
EncodingAwareAbstractLogIO
final def apply(context: (String, AnyEncoded)*): Self[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3]]

Attributes

Inherited from:
EncodingAwareAbstractLogIO
final def apply(context: CustomContext): Self[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3]]

Attributes

Inherited from:
AbstractLogIO
final transparent inline def audit(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final transparent inline def auditTo(sinkKey: String)(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final override def createContext(logLevel: Level, customContext: CustomContext)(implicit pos: CodePositionMaterializer): ZIO[LogIO3[ZIO], Nothing, Context]

Attributes

Definition Classes
LogZIOImpl -> LogCreateIO
Inherited from:
LogZIOImpl (hidden)
final override def createEntry(logLevel: Level, message: Message)(implicit pos: CodePositionMaterializer): ZIO[LogIO3[ZIO], Nothing, Entry]

Attributes

Definition Classes
LogZIOImpl -> LogCreateIO
Inherited from:
LogZIOImpl (hidden)
final transparent inline def crit(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final transparent inline def critTo(sinkKey: String)(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final transparent inline def debug(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final transparent inline def debugTo(sinkKey: String)(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final transparent inline def error(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final transparent inline def errorTo(sinkKey: String)(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final transparent inline def info(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final transparent inline def infoTo(sinkKey: String)(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final override def log(logLevel: Level)(messageThunk: => Message)(implicit pos: CodePositionMaterializer): ZIO[LogIO3[ZIO], Nothing, Unit]

Attributes

Definition Classes
LogZIOImpl -> AbstractLogIO
Inherited from:
LogZIOImpl (hidden)
final override def log(entry: Entry): ZIO[LogIO3[ZIO], Nothing, Unit]

Attributes

Definition Classes
LogZIOImpl -> AbstractLogIO
Inherited from:
LogZIOImpl (hidden)
final transparent inline def logMethod[G[x], A](level: Level, printTypes: Boolean = ..., printImplicits: Boolean = ...)(inline function: => A)(using G: QuasiIO[G]): G[A]

Attributes

Inherited from:
AbstractMacroLogIO
final transparent inline def logMethodF[G[x], A](level: Level, printTypes: Boolean = ..., printImplicits: Boolean = ...)(inline function: => G[A])(using G: QuasiPrimitives[G]): G[A]

Attributes

Inherited from:
AbstractMacroLogIO
final override def logTo(sinkKey: String)(logLevel: Level)(messageThunk: => Message)(implicit pos: CodePositionMaterializer): ZIO[LogIO3[ZIO], Nothing, Unit]

Attributes

Definition Classes
LogZIOImpl -> AbstractLogIO
Inherited from:
LogZIOImpl (hidden)
final transparent inline def logValues(level: Level)(inline values: Any*): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final def raw: LogIORaw[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3], AnyEncoded]

Attributes

Inherited from:
LogIO
final transparent inline def trace(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Aliases for AbstractLogIO#log(entry:* that look better in Intellij

Aliases for AbstractLogIO#log(entry:* that look better in Intellij

Attributes

Inherited from:
AbstractMacroLogIO
final transparent inline def traceTo(sinkKey: String)(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final override def unsafeLog(entry: Entry): ZIO[LogIO3[ZIO], Nothing, Unit]

Log irrespective of the log level threshold

Log irrespective of the log level threshold

Attributes

Definition Classes
LogZIOImpl -> UnsafeLogIO
Inherited from:
LogZIOImpl (hidden)
final transparent inline def warn(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
final transparent inline def warnTo(sinkKey: String)(inline message: String): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]

Attributes

Inherited from:
AbstractMacroLogIO
override def widen[G[_]](implicit ev: [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit] <:< G[Unit]): LogIO[G]

Attributes

Definition Classes
Inherited from:
LogIO
final override def withCustomContext(context: CustomContext): LogIO2[[_, _] =>> ZIO[LogIO3[ZIO], _$7, _$8]]

Attributes

Definition Classes
LogZIOImpl -> AbstractLogIO
Inherited from:
LogZIOImpl (hidden)
final def withCustomContext(context: (String, AnyEncoded)*): Self[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3]]

Attributes

Inherited from:
EncodingAwareAbstractLogIO
final def withCustomContextMap(context: Map[String, AnyEncoded]): Self[[_] =>> ZIO[LogIO3[ZIO], Nothing, _$3]]

Attributes

Inherited from:
EncodingAwareAbstractLogIO