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
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)
Attributes
- Inherited from:
- EncodingAwareAbstractLogIO
Attributes
- Inherited from:
- EncodingAwareAbstractLogIO
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)
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Definition Classes
-
LogZIOImpl -> AbstractLogIO
- Inherited from:
- LogZIOImpl (hidden)
Attributes
- Definition Classes
-
LogZIOImpl -> AbstractLogIO
- Inherited from:
- LogZIOImpl (hidden)
Attributes
- Inherited from:
- AbstractMacroLogIO
Attributes
- Inherited from:
- LogIO
Aliases for AbstractLogIO#log that look better in Intellij
Aliases for AbstractLogIO#log that look better in Intellij
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
- 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
In this article