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
-
class Objecttrait Matchableclass AnyShow all
- Self type
-
log.type
Members list
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)
Attributes
- Inherited from:
- EncodingAwareAbstractLogIO
Attributes
- Inherited from:
- EncodingAwareAbstractLogIO
Attributes
- Inherited from:
- AbstractLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
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)
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
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)
Attributes
- Definition Classes
-
LogZIOImpl -> AbstractLogIO
- Inherited from:
- LogZIOImpl (hidden)
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)
Attributes
- Inherited from:
- AbstractMacroLogIO
final def print(message: => Message)(implicit pos: CodePositionMaterializer): [_] =>> ZIO[LogIO3[ZIO], Nothing, _$3][Unit]
Attributes
- Inherited from:
- AbstractLogIO
Attributes
- Inherited from:
- LogIO
Aliases for AbstractLogIO#log(entry:* that look better in Intellij
Aliases for AbstractLogIO#log(entry:* that look better in Intellij
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
Log irrespective of the log level threshold
Log irrespective of the log level threshold
Attributes
- Definition Classes
-
LogZIOImpl -> UnsafeLogIO
- Inherited from:
- LogZIOImpl (hidden)
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
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
In this article