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 Self[f[_]] = LogIO[f]

Attributes

Inherited from:
LogIO

Value members

Inherited methods

final override def acceptable(logLevel: 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

Attributes

Definition Classes
LogZIOImpl -> UnsafeLogIO
Inherited from:
LogZIOImpl (hidden)
final override def acceptable(loggerId: LoggerId, logLevel: 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

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 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 debug(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 info(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 log(inline level: Level, inline message: String): [_] =>> 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 that look better in Intellij

Aliases for AbstractLogIO#log that look better in Intellij

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
override def widen[G[_]](implicit ev: ZIO[LogIO3[ZIO], Nothing, AnyRef] <:< G[AnyRef]): LogIO[G]

Attributes

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

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