Trait/Object

com.tersesystems.blindsight.semantic

SemanticLogger

Related Docs: object SemanticLogger | package semantic

Permalink

trait SemanticLogger[StatementType] extends SemanticLoggerAPI[StatementType, CorePredicate, SemanticMethod] with UnderlyingMixin with SemanticEventBufferMixin[StatementType] with SemanticEntryTransformMixin[StatementType] with SemanticMarkerMixin[StatementType] with SemanticRefineMixin[StatementType]

The semantic logger trait takes a statement as a type. Types can be refined from the general to the specific.

val userEventLogger: SemanticLogger[UserEvent] = LoggerFactory.getLogger.semantic[UserEvent]
userEventLogger.info(UserLoggedInEvent("steve", "127.0.0.1"))
userEventLogger.info(UserLoggedOutEvent("steve", "timeout"))
StatementType

the type class instance of com.tersesystems.blindsight.ToStatement.

Source
SemanticLogger.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SemanticLogger
  2. SemanticRefineMixin
  3. SemanticMarkerMixin
  4. SemanticEntryTransformMixin
  5. SemanticEventBufferMixin
  6. UnderlyingMixin
  7. SemanticLoggerAPI
  8. Error
  9. Warn
  10. Info
  11. Debug
  12. Trace
  13. SemanticLoggerComponent
  14. AnyRef
  15. 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

Type Members

  1. type Method[T] = SemanticMethod[T]

    Permalink
    Definition Classes
    SemanticLoggerComponent
  2. type Predicate = CorePredicate

    Permalink
    Definition Classes
    SemanticLoggerComponent
  3. type Self[T] = SemanticLogger[T]

    Permalink

Abstract Value Members

  1. abstract def debug: Method[StatementType]

    Permalink
    Definition Classes
    Debug
  2. abstract def error: Method[StatementType]

    Permalink
    Definition Classes
    Error
  3. abstract def info: Method[StatementType]

    Permalink
    Definition Classes
    Info
  4. abstract def isDebugEnabled: Predicate

    Permalink
    Definition Classes
    Debug
  5. abstract def isErrorEnabled: Predicate

    Permalink
    Definition Classes
    Error
  6. abstract def isInfoEnabled: Predicate

    Permalink
    Definition Classes
    Info
  7. abstract def isTraceEnabled: Predicate

    Permalink
    Definition Classes
    Trace
  8. abstract def isWarnEnabled: Predicate

    Permalink
    Definition Classes
    Warn
  9. abstract def markers: Markers

    Permalink

    returns

    the accumulated markers, may be Markers.empty.

    Definition Classes
    SemanticMarkerMixin
  10. abstract def refine[T <: StatementType](implicit arg0: ToStatement[T], arg1: NotNothing[T]): Self[T]

    Permalink

    Refines the statement type to the given subtype.

    Refines the statement type to the given subtype.

    T

    the refined type

    returns

    a semantic logger with the new type

    Definition Classes
    SemanticRefineMixin
  11. abstract def trace: Method[StatementType]

    Permalink
    Definition Classes
    Trace
  12. abstract def underlying: org.slf4j.Logger

    Permalink
    Definition Classes
    UnderlyingMixin
  13. abstract def warn: Method[StatementType]

    Permalink
    Definition Classes
    Warn
  14. abstract def withCondition(condition: Condition): Self[StatementType]

    Permalink
  15. abstract def withEntryTransform(level: Level, f: (Entry) ⇒ Entry): Self[StatementType]

    Permalink
    Definition Classes
    SemanticEntryTransformMixin
  16. abstract def withEventBuffer(buffer: EventBuffer): Self[StatementType]

    Permalink
    Definition Classes
    SemanticEventBufferMixin
  17. abstract def withMarker[T](instance: ⇒ T)(implicit arg0: ToMarkers[T]): Self[StatementType]

    Permalink

    T

    the instance type.

    instance

    a type class instance of ToMarkers

    returns

    a new logger instance with the marker.

    Definition Classes
    SemanticMarkerMixin

Concrete 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 SemanticLogger[StatementType] to any2stringadd[SemanticLogger[StatementType]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (SemanticLogger[StatementType], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from SemanticLogger[StatementType] to ArrowAssoc[SemanticLogger[StatementType]] 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. def ensuring(cond: (SemanticLogger[StatementType]) ⇒ Boolean, msg: ⇒ Any): SemanticLogger[StatementType]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def formatted(fmtstr: String): String

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

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def [B](y: B): (SemanticLogger[StatementType], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from SemanticLogger[StatementType] to ArrowAssoc[SemanticLogger[StatementType]] 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[StatementType]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.4.0) use withCondition

Inherited from SemanticRefineMixin[StatementType]

Inherited from SemanticMarkerMixin[StatementType]

Inherited from SemanticEntryTransformMixin[StatementType]

Inherited from SemanticEventBufferMixin[StatementType]

Inherited from UnderlyingMixin

Inherited from SemanticLoggerAPI[StatementType, CorePredicate, SemanticMethod]

Inherited from Error[StatementType, CorePredicate, SemanticMethod]

Inherited from Warn[StatementType, CorePredicate, SemanticMethod]

Inherited from Info[StatementType, CorePredicate, SemanticMethod]

Inherited from Debug[StatementType, CorePredicate, SemanticMethod]

Inherited from Trace[StatementType, CorePredicate, SemanticMethod]

Inherited from SemanticLoggerComponent[StatementType, CorePredicate, SemanticMethod]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from SemanticLogger[StatementType] to any2stringadd[SemanticLogger[StatementType]]

Inherited by implicit conversion StringFormat from SemanticLogger[StatementType] to StringFormat[SemanticLogger[StatementType]]

Inherited by implicit conversion Ensuring from SemanticLogger[StatementType] to Ensuring[SemanticLogger[StatementType]]

Inherited by implicit conversion ArrowAssoc from SemanticLogger[StatementType] to ArrowAssoc[SemanticLogger[StatementType]]

Ungrouped