RawLogger

izumi.logstage.api.logger.RawLogger

Attributes

Graph
Supertypes
trait AbstractLoggerF[Identity]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

override type Self = RawLogger[E]

Value members

Concrete methods

def acceptable(loggerId: LoggerId, logLevel: Level): Boolean

Check if loggerId is not blacklisted and logLevel is above the configured threshold

Check if loggerId is not blacklisted and logLevel is above the configured threshold

Attributes

def unsafeLog(entry: Entry): Unit

Log irrespective of the log level threshold

Log irrespective of the log level threshold

Attributes

Inherited methods

final def acceptable(logLevel: Level)(implicit pos: CodePositionMaterializer): Identity[Boolean]

Attributes

Inherited from:
AbstractLoggerF
final def apply(context: Map[String, E]): Self

Attributes

Inherited from:
EncodingAwareAbstractLogger
final def apply(context: (String, E)*): Self

Attributes

Inherited from:
EncodingAwareAbstractLogger
final def apply(context: CustomContext): Self

Attributes

Inherited from:
AbstractLoggerF
final inline def crit(inline message: String): Unit

Attributes

Inherited from:
AbstractMacroRawLogger
final inline def debug(inline message: String): Unit

Attributes

Inherited from:
AbstractMacroRawLogger
final inline def error(inline message: String): Unit

Attributes

Inherited from:
AbstractMacroRawLogger
final def ifAcceptable(loggerId: LoggerId, logLevel: Level)(action: => Unit)(implicit pos: CodePositionMaterializer): Unit

Attributes

Inherited from:
AbstractLogger
final inline def info(inline message: String): Unit

Attributes

Inherited from:
AbstractMacroRawLogger
final inline def log(inline level: Level, inline message: String): Unit

Attributes

Inherited from:
AbstractMacroRawLogger
final def log(logLevel: Level)(messageThunk: => Message)(implicit pos: CodePositionMaterializer): Identity[Unit]

Construct Entry and log if logLevel is above the threshold configured for this logger.

Construct Entry and log if logLevel is above the threshold configured for this logger.

Does not allocate Entry if logLevel is below the requirement

Attributes

Inherited from:
AbstractLoggerF
final def log(entry: Entry): Identity[Unit]

Log Entry if logLevel is above the threshold configured for this logger.

Log Entry if logLevel is above the threshold configured for this logger.

Attributes

Inherited from:
AbstractLoggerF
final inline def trace(inline 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 messageThunk for a log call.

They also look better in Intellij

Attributes

Inherited from:
AbstractMacroRawLogger
final inline def warn(inline message: String): Unit

Attributes

Inherited from:
AbstractMacroRawLogger
final def withCustomContext(context: (String, E)*): Self

Attributes

Inherited from:
EncodingAwareAbstractLogger
final def withCustomContextMap(context: Map[String, E]): Self

Attributes

Inherited from:
EncodingAwareAbstractLogger