org.log4s

TestAppender

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
Type Hierarchy Learn more about scaladoc diagrams
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 any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TestAppender()

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

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

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def addError(arg0: String, arg1: Throwable): Unit

    Definition Classes
    ContextAwareBase → ContextAware
  9. def addError(arg0: String): Unit

    Definition Classes
    ContextAwareBase → ContextAware
  10. def addFilter(arg0: Filter[ILoggingEvent]): Unit

    Definition Classes
    AppenderBase → FilterAttachable
  11. def addInfo(arg0: String, arg1: Throwable): Unit

    Definition Classes
    ContextAwareBase → ContextAware
  12. def addInfo(arg0: String): Unit

    Definition Classes
    ContextAwareBase → ContextAware
  13. def addStatus(arg0: Status): Unit

    Definition Classes
    ContextAwareBase → ContextAware
  14. def addWarn(arg0: String, arg1: Throwable): Unit

    Definition Classes
    ContextAwareBase → ContextAware
  15. def addWarn(arg0: String): Unit

    Definition Classes
    ContextAwareBase → ContextAware
  16. def append(event: ILoggingEvent): Unit

    Definition Classes
    TestAppender → AppenderBase
  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. def clearAllFilters(): Unit

    Definition Classes
    AppenderBase → FilterAttachable
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def doAppend(arg0: ILoggingEvent): Unit

    Definition Classes
    AppenderBase → Appender
  21. def ensuring(cond: (TestAppender) ⇒ Boolean, msg: ⇒ Any): TestAppender

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  27. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def formatted(fmtstr: String): String

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

    Definition Classes
    AnyRef → Any
  30. def getContext(): Context

    Definition Classes
    ContextAwareBase → ContextAware
  31. def getCopyOfAttachedFiltersList(): List[Filter[ILoggingEvent]]

    Definition Classes
    AppenderBase → FilterAttachable
  32. def getDeclaredOrigin(): AnyRef

    Attributes
    protected[ch.qos.logback.core.spi]
    Definition Classes
    ContextAwareBase
  33. def getFilterChainDecision(arg0: ILoggingEvent): FilterReply

    Definition Classes
    AppenderBase → FilterAttachable
  34. def getName(): String

    Definition Classes
    AppenderBase → Appender
  35. def getStatusManager(): StatusManager

    Definition Classes
    ContextAwareBase
  36. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  37. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  38. def isStarted(): Boolean

    Definition Classes
    AppenderBase → LifeCycle
  39. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  40. final def notify(): Unit

    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  42. def setContext(arg0: Context): Unit

    Definition Classes
    ContextAwareBase → ContextAware
  43. def setName(arg0: String): Unit

    Definition Classes
    AppenderBase → Appender
  44. def start(): Unit

    Definition Classes
    TestAppender → AppenderBase → LifeCycle
  45. def stop(): Unit

    Definition Classes
    TestAppender → AppenderBase → LifeCycle
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  47. def toString(): String

    Definition Classes
    AppenderBase → AnyRef → Any
  48. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def [B](y: B): (TestAppender, B)

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

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from TestAppender to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (testAppender: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from TestAppender to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (testAppender: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: TestAppender

    Implicit information
    This member is added by an implicit conversion from TestAppender to ArrowAssoc[TestAppender] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (testAppender: ArrowAssoc[TestAppender]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: TestAppender

    Implicit information
    This member is added by an implicit conversion from TestAppender to Ensuring[TestAppender] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (testAppender: Ensuring[TestAppender]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

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 from TestAppender to StringAdd

Inherited by implicit conversion any2stringfmt from TestAppender to StringFormat

Inherited by implicit conversion any2ArrowAssoc from TestAppender to ArrowAssoc[TestAppender]

Inherited by implicit conversion any2Ensuring from TestAppender to Ensuring[TestAppender]

Ungrouped