Class

com.tersesystems.blindsight.scripting

ScriptAwareLogger

Related Doc: package scripting

Permalink

class ScriptAwareLogger 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.

Source
ScriptAwareLogger.scala
Linear Supertypes
Impl, CoreLoggerDefaults, Proxy[CorePredicate, StrictSLF4JMethod], Logger, SLF4JLogger, OnConditionMixin, ConditionMixin, EventBufferMixin, EntryTransformMixin, UnderlyingMixin, MarkerMixin, SLF4JLoggerAPI[CorePredicate, StrictSLF4JMethod], Error[CorePredicate, StrictSLF4JMethod], Warn[CorePredicate, StrictSLF4JMethod], Info[CorePredicate, StrictSLF4JMethod], Debug[CorePredicate, StrictSLF4JMethod], Trace[CorePredicate, StrictSLF4JMethod], SLF4JLoggerComponent[CorePredicate, StrictSLF4JMethod], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScriptAwareLogger
  2. Impl
  3. CoreLoggerDefaults
  4. Proxy
  5. Logger
  6. SLF4JLogger
  7. OnConditionMixin
  8. ConditionMixin
  9. EventBufferMixin
  10. EntryTransformMixin
  11. UnderlyingMixin
  12. MarkerMixin
  13. SLF4JLoggerAPI
  14. Error
  15. Warn
  16. Info
  17. Debug
  18. Trace
  19. SLF4JLoggerComponent
  20. AnyRef
  21. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScriptAwareLogger(core: CoreLogger, scriptManager: ScriptManager)

    Permalink

Type Members

  1. type Method = ScriptAwareSLF4JLogger.Method

    Permalink
    Definition Classes
    Proxy → SLF4JLoggerComponent
  2. type Parent = SLF4JLogger

    Permalink
    Definition Classes
    Impl → Proxy
  3. type Predicate = ScriptAwareSLF4JLogger.Predicate

    Permalink
    Definition Classes
    Proxy → SLF4JLoggerComponent
  4. class ScriptAwareFluentLogger extends Impl

    Permalink
  5. class ScriptAwareSLF4JLogger extends Strict

    Permalink
  6. class ScriptAwareSemanticLogger[StatementType] extends Impl[StatementType]

    Permalink
  7. type Self = Logger

    Permalink
    Definition Classes
    Impl → CoreLoggerDefaults → Logger → SLF4JLogger → OnConditionMixin → ConditionMixin → EventBufferMixin → EntryTransformMixin → MarkerMixin → SLF4JLoggerComponent

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScriptAwareLogger to any2stringadd[ScriptAwareLogger] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ScriptAwareLogger, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScriptAwareLogger to ArrowAssoc[ScriptAwareLogger] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. val core: CoreLogger

    Permalink
    Attributes
    protected
    Definition Classes
    Impl → CoreLoggerDefaults
  9. def debug: Method

    Permalink
    Definition Classes
    Proxy → Debug
  10. def ensuring(cond: (ScriptAwareLogger) ⇒ Boolean, msg: ⇒ Any): ScriptAwareLogger

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScriptAwareLogger to Ensuring[ScriptAwareLogger] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (ScriptAwareLogger) ⇒ Boolean): ScriptAwareLogger

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScriptAwareLogger to Ensuring[ScriptAwareLogger] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): ScriptAwareLogger

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScriptAwareLogger to Ensuring[ScriptAwareLogger] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): ScriptAwareLogger

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScriptAwareLogger to Ensuring[ScriptAwareLogger] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def error: Method

    Permalink
    Definition Classes
    Proxy → Error
  17. lazy val flow: FlowLogger

    Permalink
    Definition Classes
    Impl → Logger
  18. lazy val fluent: FluentLogger

    Permalink
    Definition Classes
    ScriptAwareLogger → Impl → Logger
  19. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScriptAwareLogger to StringFormat[ScriptAwareLogger] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  22. def info: Method

    Permalink
    Definition Classes
    Proxy → Info
  23. def isDebugEnabled: Predicate

    Permalink
    Definition Classes
    Proxy → Debug
  24. def isErrorEnabled: Predicate

    Permalink
    Definition Classes
    Proxy → Error
  25. def isInfoEnabled: Predicate

    Permalink
    Definition Classes
    Proxy → Info
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def isTraceEnabled: Predicate

    Permalink
    Definition Classes
    Proxy → Trace
  28. def isWarnEnabled: Predicate

    Permalink
    Definition Classes
    Proxy → Warn
  29. val logger: ScriptAwareSLF4JLogger

    Permalink
    Attributes
    protected
    Definition Classes
    ScriptAwareLogger → Impl → Proxy
  30. def markers: Markers

    Permalink
    Definition Classes
    Impl → CoreLoggerDefaults → MarkerMixin
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  34. def self(core: CoreLogger): Self

    Permalink
    Attributes
    protected
    Definition Classes
    ScriptAwareLogger → Impl → CoreLoggerDefaults
  35. def semantic[StatementType](implicit arg0: NotNothing[StatementType]): SemanticLogger[StatementType]

    Permalink
    Definition Classes
    ScriptAwareLogger → Impl → Logger
  36. def strict: SLF4JLogger

    Permalink
    Definition Classes
    ScriptAwareLogger → Impl → Logger
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. def trace: Method

    Permalink
    Definition Classes
    Proxy → Trace
  40. def underlying: org.slf4j.Logger

    Permalink
    Definition Classes
    Impl → CoreLoggerDefaults → UnderlyingMixin
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def warn: Method

    Permalink
    Definition Classes
    Proxy → Warn
  45. def withCondition(condition: Condition): Self

    Permalink
    Definition Classes
    CoreLoggerDefaults
  46. def withEntryTransform(f: (Entry) ⇒ Entry): Self

    Permalink
    Definition Classes
    CoreLoggerDefaults
  47. def withEntryTransform(level: Level, f: (Entry) ⇒ Entry): Self

    Permalink
    Definition Classes
    CoreLoggerDefaults
  48. def withEventBuffer(level: Level, buffer: EventBuffer): Self

    Permalink
    Definition Classes
    CoreLoggerDefaults
  49. def withEventBuffer(buffer: EventBuffer): Self

    Permalink
    Definition Classes
    CoreLoggerDefaults
  50. def withMarker[T](markerInstance: T)(implicit arg0: ToMarkers[T]): Self

    Permalink
    Definition Classes
    CoreLoggerDefaults
  51. def [B](y: B): (ScriptAwareLogger, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScriptAwareLogger to ArrowAssoc[ScriptAwareLogger] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  2. def onCondition(condition: Condition): Self

    Permalink
    Definition Classes
    OnConditionMixin
    Annotations
    @deprecated
    Deprecated

    (Since version 1.4.0) Use withCondition

Inherited from Impl

Inherited from CoreLoggerDefaults

Inherited from Proxy[CorePredicate, StrictSLF4JMethod]

Inherited from Logger

Inherited from SLF4JLogger

Inherited from OnConditionMixin

Inherited from ConditionMixin

Inherited from EventBufferMixin

Inherited from EntryTransformMixin

Inherited from UnderlyingMixin

Inherited from MarkerMixin

Inherited from SLF4JLoggerAPI[CorePredicate, StrictSLF4JMethod]

Inherited from Error[CorePredicate, StrictSLF4JMethod]

Inherited from Warn[CorePredicate, StrictSLF4JMethod]

Inherited from Info[CorePredicate, StrictSLF4JMethod]

Inherited from Debug[CorePredicate, StrictSLF4JMethod]

Inherited from Trace[CorePredicate, StrictSLF4JMethod]

Inherited from SLF4JLoggerComponent[CorePredicate, StrictSLF4JMethod]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ScriptAwareLogger to any2stringadd[ScriptAwareLogger]

Inherited by implicit conversion StringFormat from ScriptAwareLogger to StringFormat[ScriptAwareLogger]

Inherited by implicit conversion Ensuring from ScriptAwareLogger to Ensuring[ScriptAwareLogger]

Inherited by implicit conversion ArrowAssoc from ScriptAwareLogger to ArrowAssoc[ScriptAwareLogger]

Ungrouped