class BufferedAppender extends Appender

An appender that can buffer the logging done on it and then can flush the buffer to the delegate appender provided in the constructor. Use 'record()' to start buffering and then 'play' to flush the buffer to the backing appender. The logging level set at the time a message is originally logged is used, not the level at the time 'play' is called.

Linear Supertypes
Appender, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BufferedAppender
  2. Appender
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BufferedAppender(name: String, delegate: Appender)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def appendLog(level: util.Level.Value, message: ⇒ String): Unit

    Appends the message message to the to the log at level level.

    Appends the message message to the to the log at level level.

    level

    The importance level of the message.

    message

    The message to log.

    Definition Classes
    BufferedAppenderAppender
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def buffer[T](f: ⇒ T): T
  7. def bufferQuietly[T](f: ⇒ T): T
  8. def clearBuffer(): Unit

    Clears buffered events and disables buffering.

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def close(): Unit
    Definition Classes
    BufferedAppender → AutoCloseable
  11. def control(event: util.ControlEvent.Value, message: ⇒ String): Unit

    Logs a ControlEvent to the log.

    Logs a ControlEvent to the log.

    event

    The kind of ControlEvent.

    message

    The message to log.

    Definition Classes
    Appender
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getTrace: Int

    Returns the number of lines for stacktrace.

    Returns the number of lines for stacktrace.

    Definition Classes
    Appender
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val name: String
    Definition Classes
    BufferedAppenderAppender
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def play(): Unit

    Flushes the buffer to the delegate logger.

    Flushes the buffer to the delegate logger. This method calls logAll on the delegate so that the messages are written consecutively. The buffer is cleared in the process.

  24. def record(): Unit

    Enables buffering.

  25. def setTrace(level: Int): Unit
    Definition Classes
    Appender
  26. def stopBuffer(): Unit

    Plays buffered events and disables buffering.

  27. def stopQuietly(): Unit
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def trace(t: ⇒ Throwable, traceLevel: Int): Unit

    Logs the stack trace of t, possibly shortening it.

    Logs the stack trace of t, possibly shortening it.

    The traceLevel parameter configures how the stack trace will be shortened. See StackTrace.trimmed.

    t

    The Throwable whose stack trace to log.

    traceLevel

    How to shorten the stack trace.

    Definition Classes
    Appender
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Appender

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped