ScriptAwareLogger

com.tersesystems.blindsight.scripting.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.

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

Attributes

Source:
ScriptAwareLogger.scala
Graph
Supertypes
class Impl
trait CoreLoggerDefaults
trait Proxy[CorePredicate, StrictSLF4JMethod]
trait Logger
trait SLF4JLogger
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

Members list

Concise view

Type members

Classlikes

class ScriptAwareFluentLogger(core: CoreLogger) extends Impl

Attributes

Source:
ScriptAwareLogger.scala
Graph
Supertypes
class Impl
class Base
trait LoggerMethodDefaults[FluentMethod]
trait CoreLoggerDefaults
trait FluentLogger
trait OnConditionMixin
trait ConditionMixin
trait EventBufferMixin
trait EntryTransformMixin
trait UnderlyingMixin
trait MarkerMixin
trait SLF4JLoggerAPI[CorePredicate, FluentMethod]
trait Error[CorePredicate, FluentMethod]
trait Warn[CorePredicate, FluentMethod]
trait Info[CorePredicate, FluentMethod]
trait Debug[CorePredicate, FluentMethod]
trait Trace[CorePredicate, FluentMethod]
trait SLF4JLoggerComponent[CorePredicate, FluentMethod]
class Object
trait Matchable
class Any
class ScriptAwareSLF4JLogger(core: CoreLogger) extends Strict

Attributes

Source:
ScriptAwareLogger.scala
Graph
Supertypes
class Strict
trait LoggerMethodDefaults[StrictSLF4JMethod]
trait CoreLoggerDefaults
trait SLF4JLogger
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
class ScriptAwareSemanticLogger[StatementType](core: CoreLogger)(implicit evidence$2: NotNothing[StatementType]) extends Impl[StatementType]

Attributes

Source:
ScriptAwareLogger.scala
Graph
Supertypes
class Impl[StatementType]
trait SemanticLogger[StatementType]
trait SemanticRefineMixin[StatementType]
trait SemanticMarkerMixin[StatementType]
trait SemanticEntryTransformMixin[StatementType]
trait SemanticEventBufferMixin[StatementType]
trait UnderlyingMixin
trait SemanticLoggerAPI[StatementType, CorePredicate, SemanticMethod]
trait Error[StatementType, CorePredicate, SemanticMethod]
trait Warn[StatementType, CorePredicate, SemanticMethod]
trait Info[StatementType, CorePredicate, SemanticMethod]
trait Debug[StatementType, CorePredicate, SemanticMethod]
trait Trace[StatementType, CorePredicate, SemanticMethod]
trait SemanticLoggerComponent[StatementType, CorePredicate, SemanticMethod]
class Object
trait Matchable
class Any

Inherited types

override type Method = Method

Attributes

Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
override type Parent = SLF4JLogger

Attributes

Inherited from:
Impl
Source:
Logger.scala
override type Predicate = Predicate

Attributes

Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
override type Self = Logger

Attributes

Inherited from:
Impl
Source:
Logger.scala

Value members

Concrete methods

override protected def self(core: CoreLogger): Self

Attributes

Definition Classes
Impl -> CoreLoggerDefaults
Source:
ScriptAwareLogger.scala
override def semantic[StatementType : NotNothing]: SemanticLogger[StatementType]

Attributes

Definition Classes
Impl -> Logger
Source:
ScriptAwareLogger.scala
override def strict: SLF4JLogger

Attributes

Definition Classes
Impl -> Logger
Source:
ScriptAwareLogger.scala

Inherited methods

override def debug: Method

Attributes

Definition Classes
Proxy -> Debug
Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
override def error: Method

Attributes

Definition Classes
Proxy -> Error
Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
override def info: Method

Attributes

Definition Classes
Proxy -> Info
Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
override def isDebugEnabled: Predicate

Attributes

Definition Classes
Proxy -> Debug
Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
override def isErrorEnabled: Predicate

Attributes

Definition Classes
Proxy -> Error
Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
override def isInfoEnabled: Predicate

Attributes

Definition Classes
Proxy -> Info
Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
override def isTraceEnabled: Predicate

Attributes

Definition Classes
Proxy -> Trace
Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
override def isWarnEnabled: Predicate

Attributes

Definition Classes
Proxy -> Warn
Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
override def markers: Markers

Returns the accumulated markers of this logger.

Returns the accumulated markers of this logger.

Attributes

Returns:

the accumulated markers, may be Markers.empty.

Definition Classes
Impl -> CoreLoggerDefaults -> MarkerMixin
Inherited from:
Impl
Source:
Logger.scala
override def trace: Method

Attributes

Definition Classes
Proxy -> Trace
Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
override def underlying: Logger

Attributes

Definition Classes
Impl -> CoreLoggerDefaults -> UnderlyingMixin
Inherited from:
Impl
Source:
Logger.scala
override def warn: Method

Attributes

Definition Classes
Proxy -> Warn
Inherited from:
Proxy
Source:
SLF4JLoggerAPI.scala
def withCondition(condition: Condition): Self

Attributes

Inherited from:
CoreLoggerDefaults
Source:
CoreLoggerDefaults.scala
def withEntryTransform(f: Entry => Entry): Self

Attributes

Inherited from:
CoreLoggerDefaults
Source:
CoreLoggerDefaults.scala
def withEntryTransform(level: Level, f: Entry => Entry): Self

Attributes

Inherited from:
CoreLoggerDefaults
Source:
CoreLoggerDefaults.scala
def withEventBuffer(level: Level, buffer: EventBuffer): Self

Attributes

Inherited from:
CoreLoggerDefaults
Source:
CoreLoggerDefaults.scala
def withEventBuffer(buffer: EventBuffer): Self

Attributes

Inherited from:
CoreLoggerDefaults
Source:
CoreLoggerDefaults.scala
def withMarker[T : ToMarkers](markerInstance: T): Self

Attributes

Inherited from:
CoreLoggerDefaults
Source:
CoreLoggerDefaults.scala

Deprecated and Inherited methods

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.

Attributes

Deprecated
true
Inherited from:
OnConditionMixin
Source:
ConditionMixin.scala

Concrete fields

lazy override val fluent: FluentLogger

Attributes

Source:
ScriptAwareLogger.scala
override protected val logger: Parent

Attributes

Source:
ScriptAwareLogger.scala

Inherited fields

lazy override val flow: FlowLogger

Attributes

Inherited from:
Impl
Source:
Logger.scala