ScriptAwareLogger

class ScriptAwareLogger(core: CoreLogger, scriptManager: ScriptManager) extends Impl

A logger that runs through a script manager for every predicate. The script manager is responsible for evaluating the script and return true or false. The only thing the logger does here is pass through sourcecode information and the level.

A logger that runs through a script manager for every predicate. The script manager is responsible for evaluating the script and return true or false. The only thing the logger does here is pass through sourcecode information and the level.

If the script fails or throws an exception, the underlying predicate is called as the default.

class Impl
trait CoreLoggerDefaults
trait Proxy[CorePredicate, StrictSLF4JMethod]
trait Logger
trait SLF4JLogger[StrictSLF4JMethod]
trait OnConditionMixin
trait ConditionMixin
trait EventBufferMixin
trait EntryTransformMixin
trait UnderlyingMixin
trait MarkerMixin
trait SLF4JLoggerAPI[CorePredicate, StrictSLF4JMethod]
trait Error[CorePredicate, StrictSLF4JMethod]
trait Warn[CorePredicate, StrictSLF4JMethod]
trait Info[CorePredicate, StrictSLF4JMethod]
trait Debug[CorePredicate, StrictSLF4JMethod]
trait Trace[CorePredicate, StrictSLF4JMethod]
trait SLF4JLoggerComponent[CorePredicate, StrictSLF4JMethod]
class Object
trait Matchable
class Any

Type members

Classlikes

class ScriptAwareFluentLogger(core: CoreLogger) extends Impl
class ScriptAwareSLF4JLogger(core: CoreLogger) extends Strict
class ScriptAwareSemanticLogger[StatementType](core: CoreLogger)(`evidence$2`: NotNothing[StatementType]) extends Impl[StatementType]
class ScriptAwareUncheckedSLF4JLogger(core: CoreLogger) extends Unchecked

Inherited types

override type Method = Method
Inherited from
Proxy
override type Parent = SLF4JLogger[StrictSLF4JMethod]
Inherited from
Impl
override type Predicate = Predicate
Inherited from
Proxy
override type Self = Logger
Inherited from
Impl

Value members

Concrete methods

override protected def self(core: CoreLogger): Self
Definition Classes
Impl -> CoreLoggerDefaults
override def semantic[StatementType](`evidence$1`: NotNothing[StatementType]): SemanticLogger[StatementType]
Definition Classes
Impl -> Logger
override def strict: SLF4JLogger[StrictSLF4JMethod]
Definition Classes
Impl -> Logger

Inherited methods

override def debug: Method
Definition Classes
Proxy -> Debug
Inherited from
Proxy
override def error: Method
Definition Classes
Proxy -> Error
Inherited from
Proxy
override def info: Method
Definition Classes
Proxy -> Info
Inherited from
Proxy
override def isDebugEnabled: Predicate
Definition Classes
Proxy -> Debug
Inherited from
Proxy
override def isErrorEnabled: Predicate
Definition Classes
Proxy -> Error
Inherited from
Proxy
override def isInfoEnabled: Predicate
Definition Classes
Proxy -> Info
Inherited from
Proxy
override def isTraceEnabled: Predicate
Definition Classes
Proxy -> Trace
Inherited from
Proxy
override def isWarnEnabled: Predicate
Definition Classes
Proxy -> Warn
Inherited from
Proxy
override def markers: Markers
Definition Classes
Impl -> CoreLoggerDefaults -> MarkerMixin
Inherited from
Impl
override def trace: Method
Definition Classes
Proxy -> Trace
Inherited from
Proxy
override def underlying: Logger
Definition Classes
Impl -> CoreLoggerDefaults -> UnderlyingMixin
Inherited from
Impl
override def warn: Method
Definition Classes
Proxy -> Warn
Inherited from
Proxy
def withCondition(condition: Condition): Self
Inherited from
CoreLoggerDefaults
def withEntryTransform(f: Entry => Entry): Self
Inherited from
CoreLoggerDefaults
def withEntryTransform(level: Level, f: Entry => Entry): Self
Inherited from
CoreLoggerDefaults
def withEventBuffer(level: Level, buffer: EventBuffer): Self
Inherited from
CoreLoggerDefaults
def withEventBuffer(buffer: EventBuffer): Self
Inherited from
CoreLoggerDefaults
def withMarker[T](markerInstance: T)(`evidence$1`: ToMarkers[T]): Self
Inherited from
CoreLoggerDefaults

Deprecated and Inherited methods

@deprecated("Use withCondition", "1.4.0")
def onCondition(condition: Condition): Self

Returns a new instance of the logger that will only log if the condition is met.

Returns a new instance of the logger that will only log if the condition is met.

Deprecated
Inherited from
OnConditionMixin

Concrete fields

lazy override val fluent: FluentLogger
override protected val logger: Parent
lazy override val unchecked: SLF4JLogger[UncheckedSLF4JMethod]

Inherited fields

lazy override val flow: FlowLogger
Inherited from
Impl