Packages

class TestAppender extends AppenderBase[ILoggingEvent]

A custom appender for Logback that captures the events.

The test suite can use this to make sure all log events are recorded as expected.

Source
TestAppender.scala
Linear Supertypes
AppenderBase[ILoggingEvent], Appender[ILoggingEvent], FilterAttachable[ILoggingEvent], LifeCycle, ContextAwareBase, ContextAware, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestAppender
  2. AppenderBase
  3. Appender
  4. FilterAttachable
  5. LifeCycle
  6. ContextAwareBase
  7. ContextAware
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TestAppender()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from TestAppender toany2stringadd[TestAppender] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (TestAppender, B)
    Implicit
    This member is added by an implicit conversion from TestAppender toArrowAssoc[TestAppender] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def addError(arg0: String, arg1: Throwable): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  7. def addError(arg0: String): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  8. def addFilter(arg0: Filter[ILoggingEvent]): Unit
    Definition Classes
    AppenderBase → FilterAttachable
  9. def addInfo(arg0: String, arg1: Throwable): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  10. def addInfo(arg0: String): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  11. def addStatus(arg0: Status): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  12. def addWarn(arg0: String, arg1: Throwable): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  13. def addWarn(arg0: String): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  14. def append(event: ILoggingEvent): Unit
    Definition Classes
    TestAppender → AppenderBase
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def clearAllFilters(): Unit
    Definition Classes
    AppenderBase → FilterAttachable
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  18. def doAppend(arg0: ILoggingEvent): Unit
    Definition Classes
    AppenderBase → Appender
  19. def ensuring(cond: (TestAppender) => Boolean, msg: => Any): TestAppender
    Implicit
    This member is added by an implicit conversion from TestAppender toEnsuring[TestAppender] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: (TestAppender) => Boolean): TestAppender
    Implicit
    This member is added by an implicit conversion from TestAppender toEnsuring[TestAppender] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean, msg: => Any): TestAppender
    Implicit
    This member is added by an implicit conversion from TestAppender toEnsuring[TestAppender] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean): TestAppender
    Implicit
    This member is added by an implicit conversion from TestAppender toEnsuring[TestAppender] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  25. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  26. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from TestAppender toStringFormat[TestAppender] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  27. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def getContext(): Context
    Definition Classes
    ContextAwareBase → ContextAware
  29. def getCopyOfAttachedFiltersList(): List[Filter[ILoggingEvent]]
    Definition Classes
    AppenderBase → FilterAttachable
  30. def getDeclaredOrigin(): AnyRef
    Attributes
    protected[spi]
    Definition Classes
    ContextAwareBase
  31. def getFilterChainDecision(arg0: ILoggingEvent): FilterReply
    Definition Classes
    AppenderBase → FilterAttachable
  32. def getName(): String
    Definition Classes
    AppenderBase → Appender
  33. def getStatusManager(): StatusManager
    Definition Classes
    ContextAwareBase
  34. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def isStarted(): Boolean
    Definition Classes
    AppenderBase → LifeCycle
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. def setContext(arg0: Context): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  41. def setName(arg0: String): Unit
    Definition Classes
    AppenderBase → Appender
  42. def start(): Unit
    Definition Classes
    TestAppender → AppenderBase → LifeCycle
  43. def stop(): Unit
    Definition Classes
    TestAppender → AppenderBase → LifeCycle
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. def toString(): String
    Definition Classes
    AppenderBase → AnyRef → Any
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def [B](y: B): (TestAppender, B)
    Implicit
    This member is added by an implicit conversion from TestAppender toArrowAssoc[TestAppender] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AppenderBase[ILoggingEvent]

Inherited from Appender[ILoggingEvent]

Inherited from FilterAttachable[ILoggingEvent]

Inherited from LifeCycle

Inherited from ContextAwareBase

Inherited from ContextAware

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromTestAppender to any2stringadd[TestAppender]

Inherited by implicit conversion StringFormat fromTestAppender to StringFormat[TestAppender]

Inherited by implicit conversion Ensuring fromTestAppender to Ensuring[TestAppender]

Inherited by implicit conversion ArrowAssoc fromTestAppender to ArrowAssoc[TestAppender]

Ungrouped