AbstractLoggerF

izumi.logstage.api.logger.AbstractLoggerF
trait AbstractLoggerF[F[_]]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Type members

Types

Value members

Abstract methods

def acceptable(loggerId: LoggerId, logLevel: Level): F[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 ifAcceptable(loggerId: LoggerId, logLevel: Level)(action: => F[Unit])(implicit pos: CodePositionMaterializer): F[Unit]
def unsafeLog(entry: Entry): F[Unit]

Log irrespective of the log level threshold

Log irrespective of the log level threshold

Attributes

Concrete methods

final def acceptable(logLevel: Level)(implicit pos: CodePositionMaterializer): F[Boolean]
final def apply(context: CustomContext): Self
final def log(entry: Entry): F[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

final def log(logLevel: Level)(messageThunk: => Message)(implicit pos: CodePositionMaterializer): F[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