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.
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Appends the message message
to the to the log at level level
.
Appends the message message
to the to the log at level level
.
Value parameters
- level
-
The importance level of the message.
- message
-
The message to log.
Attributes
- Definition Classes
Clears buffered events and disables buffering.
Clears buffered events and disables buffering.
Attributes
Attributes
- Definition Classes
-
AutoCloseable
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.
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.
Attributes
Enables buffering.
Enables buffering.
Attributes
Plays buffered events and disables buffering.
Plays buffered events and disables buffering.
Attributes
Inherited methods
Logs a ControlEvent
to the log.
Logs a ControlEvent
to the log.
Value parameters
- event
-
The kind of
ControlEvent
. - message
-
The message to log.
Attributes
- Inherited from:
- Appender
Returns the number of lines for stacktrace.
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
.
Value parameters
- t
-
The
Throwable
whose stack trace to log. - traceLevel
-
How to shorten the stack trace.
Attributes
- Inherited from:
- Appender