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.
- Alphabetic
- By Inheritance
- BufferedAppender
- Appender
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def appendLog(level: util.Level.Value, message: => String): Unit
Appends the message
message
to the to the log at levellevel
.Appends the message
message
to the to the log at levellevel
.- level
The importance level of the message.
- message
The message to log.
- Definition Classes
- BufferedAppender → Appender
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buffer[T](f: => T): T
- def bufferQuietly[T](f: => T): T
- def clearBuffer(): Unit
Clears buffered events and disables buffering.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Unit
- Definition Classes
- BufferedAppender → AutoCloseable
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getTrace: Int
Returns the number of lines for stacktrace.
Returns the number of lines for stacktrace.
- Definition Classes
- Appender
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
- Definition Classes
- BufferedAppender → Appender
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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.
- def record(): Unit
Enables buffering.
- def setTrace(level: Int): Unit
- Definition Classes
- Appender
- def stopBuffer(): Unit
Plays buffered events and disables buffering.
- def stopQuietly(): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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. SeeStackTrace.trimmed
.- t
The
Throwable
whose stack trace to log.- traceLevel
How to shorten the stack trace.
- Definition Classes
- Appender
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()