class BufferedLogger extends BasicLogger
A logger that can buffer the logging done on it and then can flush the buffer to the delegate logger provided in the constructor. Use 'startRecording' to start buffering and then 'play' from to flush the buffer to the backing logger. The logging level set at the time a message is originally logged is used, not the level at the time 'play' is called.
This class assumes that it is the only client of the delegate logger.
- Alphabetic
- By Inheritance
- BufferedLogger
- BasicLogger
- AbstractLogger
- Logger
- Logger
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new BufferedLogger(delegate: AbstractLogger)
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atLevel(level: util.Level.Value): Boolean
- Definition Classes
- AbstractLogger
- def buffer[T](f: ⇒ T): T
- def bufferQuietly[T](f: ⇒ T): T
-
def
clear(): Unit
Clears buffered events and disables buffering.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
control(event: util.ControlEvent.Value, message: ⇒ String): Unit
- Definition Classes
- BufferedLogger → AbstractLogger
- def debug(msg: Supplier[String]): Unit
-
final
def
debug(message: ⇒ String): Unit
- Definition Classes
- Logger
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
err(message: ⇒ String): Unit
- Definition Classes
- Logger
- def error(msg: Supplier[String]): Unit
-
final
def
error(message: ⇒ String): Unit
- Definition Classes
- Logger
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getLevel: util.Level.Value
- Definition Classes
- BasicLogger → AbstractLogger
-
def
getTrace: Int
- Definition Classes
- BasicLogger → AbstractLogger
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def info(msg: Supplier[String]): Unit
-
final
def
info(message: ⇒ String): Unit
- Definition Classes
- Logger
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
log(level: util.Level.Value, message: ⇒ String): Unit
- Definition Classes
- BufferedLogger → Logger
-
final
def
log(event: LogEvent): Unit
Defined in terms of other methods in Logger and should not be called from them.
Defined in terms of other methods in Logger and should not be called from them.
- Definition Classes
- AbstractLogger
-
def
log(level: util.Level.Value, msg: Supplier[String]): Unit
- Definition Classes
- Logger
-
def
logAll(events: Seq[LogEvent]): Unit
- Definition Classes
- BufferedLogger → AbstractLogger
-
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()
-
final
def
out(message: ⇒ String): Unit
- Definition Classes
- Logger
-
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
setLevel(newLevel: util.Level.Value): Unit
- Definition Classes
- BufferedLogger → BasicLogger → AbstractLogger
-
def
setSuccessEnabled(flag: Boolean): Unit
- Definition Classes
- BufferedLogger → BasicLogger → AbstractLogger
-
def
setTrace(level: Int): Unit
- Definition Classes
- BufferedLogger → BasicLogger → AbstractLogger
-
def
stop(): Unit
Plays buffered events and disables buffering.
- def stopQuietly(): Unit
-
def
success(message: ⇒ String): Unit
- Definition Classes
- BufferedLogger → Logger
-
def
success(msg: Supplier[String]): Unit
- Definition Classes
- Logger
-
def
successEnabled: Boolean
- Definition Classes
- BasicLogger → AbstractLogger
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
trace(t: ⇒ Throwable): Unit
- Definition Classes
- BufferedLogger → Logger
- def trace(msg: Supplier[Throwable]): Unit
-
final
def
traceEnabled: Boolean
- Definition Classes
- AbstractLogger
-
def
verbose(msg: Supplier[String]): Unit
- Definition Classes
- Logger
-
final
def
verbose(message: ⇒ String): Unit
- Definition Classes
- Logger
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def warn(msg: Supplier[String]): Unit
-
final
def
warn(message: ⇒ String): Unit
- Definition Classes
- Logger
Deprecated Value Members
-
def
ansiCodesSupported: Boolean
- Definition Classes
- BufferedLogger → Logger
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.0) No longer used.