class IzStrictLogger extends RoutingLogger with EncodingAwareAbstractLogger[StrictEncoded] with AbstractMacroLogger
A variant of logstage.IzLogger that renders values only
using izumi.logstage.api.rendering.LogstageCodec typeclass instances
for those values. If an instance is missing, compilation will fail, whereas
with default IzLogger, the rendering will fall back to using toString method
- Alphabetic
- By Inheritance
- IzStrictLogger
- AbstractMacroLogger
- EncodingAwareAbstractLogger
- RoutingLogger
- AbstractLogger
- AbstractLoggerF
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new IzStrictLogger(router: LogRouter, customContext: CustomContext)
Type Members
- type EncMode = Strict.type
- Definition Classes
- IzStrictLogger → AbstractLoggerF
- type Self = IzStrictLogger
- Definition Classes
- IzStrictLogger → EncodingAwareAbstractLogger → RoutingLogger → AbstractLogger → AbstractLoggerF
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def acceptable(position: CodePosition, logLevel: Level): Boolean
Check if
loggerIdis not blacklisted andlogLevelis above the configured thresholdCheck if
loggerIdis not blacklisted andlogLevelis above the configured threshold- Definition Classes
- RoutingLogger → AbstractLogger → AbstractLoggerF
- final def apply(context: Map[String, StrictEncoded]): Self
- Definition Classes
- EncodingAwareAbstractLogger
- final def apply(context: (String, StrictEncoded)*): Self
- Definition Classes
- EncodingAwareAbstractLogger
- final def apply(context: CustomContext): Self
- Definition Classes
- AbstractLoggerF
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final macro def audit(message: String): Unit
- Definition Classes
- AbstractMacroLogger
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final macro def crit(message: String): Unit
- Definition Classes
- AbstractMacroLogger
- val customContext: CustomContext
- Definition Classes
- IzStrictLogger → RoutingLogger
- final macro def debug(message: String): Unit
- Definition Classes
- AbstractMacroLogger
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final macro def error(message: String): Unit
- Definition Classes
- AbstractMacroLogger
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def ifAcceptable(position: CodePosition, logLevel: Level)(action: => Unit): Unit
- Attributes
- protected
- Definition Classes
- AbstractLogger → AbstractLoggerF
- Annotations
- @inline()
- final macro def info(message: String): Unit
- Definition Classes
- AbstractMacroLogger
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def log(logLevel: Level)(messageThunk: => Message)(implicit pos: CodePositionMaterializer): Identity[Unit]
Construct Entry and log if
logLevelis above the threshold configured for this logger.Construct Entry and log if
logLevelis above the threshold configured for this logger.Does not allocate Entry if
logLevelis below the requirement- Definition Classes
- AbstractLoggerF
- Annotations
- @inline()
- final def log(entry: Entry): Identity[Unit]
Log Entry if
logLevelis above the threshold configured for this logger.Log Entry if
logLevelis above the threshold configured for this logger.- Definition Classes
- AbstractLoggerF
- Annotations
- @inline()
- final def logMethod(level: Level, printTypes: Boolean = false, printImplicits: Boolean = false): LogMethod[EncMode]
- Definition Classes
- AbstractMacroLogger
- final macro def logValues(level: Level)(values: Any*): Unit
- Definition Classes
- AbstractMacroLogger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def raw: RawLogger[StrictEncoded]
- val router: LogRouter
- Definition Classes
- IzStrictLogger → RoutingLogger
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final macro def trace(message: String): Unit
More efficient aliases for log
More efficient aliases for log
These directly splice an acceptable check before calling unsafeLog which is more efficient than creating a
messageThunkfor a log call.They also look better in Intellij
- Definition Classes
- AbstractMacroLogger
- final def unsafeLog(entry: Entry): Unit
Log irrespective of minimum log level
Log irrespective of minimum log level
- Definition Classes
- RoutingLogger → AbstractLogger → AbstractLoggerF
- Annotations
- @inline()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final macro def warn(message: String): Unit
- Definition Classes
- AbstractMacroLogger
- def withCustomContext(context: CustomContext): Self
- Definition Classes
- IzStrictLogger → AbstractLoggerF
- final def withCustomContext(context: (String, StrictEncoded)*): Self
- Definition Classes
- EncodingAwareAbstractLogger
- final def withCustomContextMap(context: Map[String, StrictEncoded]): Self
- Definition Classes
- EncodingAwareAbstractLogger