c

sbt.internal.util

BufferedLogger

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BufferedLogger
  2. BasicLogger
  3. AbstractLogger
  4. Logger
  5. Logger
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BufferedLogger(delegate: AbstractLogger)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def atLevel(level: util.Level.Value): Boolean
    Definition Classes
    AbstractLogger
  6. def buffer[T](f: ⇒ T): T
  7. def bufferQuietly[T](f: ⇒ T): T
  8. def clear(): Unit

    Clears buffered events and disables buffering.

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def control(event: util.ControlEvent.Value, message: ⇒ String): Unit
    Definition Classes
    BufferedLoggerAbstractLogger
  11. def debug(msg: Supplier[String]): Unit
    Definition Classes
    LoggerLogger
  12. final def debug(message: ⇒ String): Unit
    Definition Classes
    Logger
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. final def err(message: ⇒ String): Unit
    Definition Classes
    Logger
  16. def error(msg: Supplier[String]): Unit
    Definition Classes
    LoggerLogger
  17. final def error(message: ⇒ String): Unit
    Definition Classes
    Logger
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def getLevel: util.Level.Value
    Definition Classes
    BasicLoggerAbstractLogger
  21. def getTrace: Int
    Definition Classes
    BasicLoggerAbstractLogger
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def info(msg: Supplier[String]): Unit
    Definition Classes
    LoggerLogger
  24. final def info(message: ⇒ String): Unit
    Definition Classes
    Logger
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def log(level: util.Level.Value, message: ⇒ String): Unit
    Definition Classes
    BufferedLoggerLogger
  27. 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
  28. def log(level: util.Level.Value, msg: Supplier[String]): Unit
    Definition Classes
    Logger
  29. def logAll(events: Seq[LogEvent]): Unit
    Definition Classes
    BufferedLoggerAbstractLogger
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def out(message: ⇒ String): Unit
    Definition Classes
    Logger
  34. 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.

  35. def record(): Unit

    Enables buffering.

  36. def setLevel(newLevel: util.Level.Value): Unit
    Definition Classes
    BufferedLoggerBasicLoggerAbstractLogger
  37. def setSuccessEnabled(flag: Boolean): Unit
    Definition Classes
    BufferedLoggerBasicLoggerAbstractLogger
  38. def setTrace(level: Int): Unit
    Definition Classes
    BufferedLoggerBasicLoggerAbstractLogger
  39. def stop(): Unit

    Plays buffered events and disables buffering.

  40. def stopQuietly(): Unit
  41. def success(message: ⇒ String): Unit
    Definition Classes
    BufferedLoggerLogger
  42. def success(msg: Supplier[String]): Unit
    Definition Classes
    Logger
  43. def successEnabled: Boolean
    Definition Classes
    BasicLoggerAbstractLogger
  44. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def trace(t: ⇒ Throwable): Unit
    Definition Classes
    BufferedLoggerLogger
  47. def trace(msg: Supplier[Throwable]): Unit
    Definition Classes
    LoggerLogger
  48. final def traceEnabled: Boolean
    Definition Classes
    AbstractLogger
  49. def verbose(msg: Supplier[String]): Unit
    Definition Classes
    Logger
  50. final def verbose(message: ⇒ String): Unit
    Definition Classes
    Logger
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  54. def warn(msg: Supplier[String]): Unit
    Definition Classes
    LoggerLogger
  55. final def warn(message: ⇒ String): Unit
    Definition Classes
    Logger

Deprecated Value Members

  1. def ansiCodesSupported: Boolean
    Definition Classes
    BufferedLoggerLogger
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) No longer used.

Inherited from BasicLogger

Inherited from AbstractLogger

Inherited from Logger

Inherited from Logger

Inherited from AnyRef

Inherited from Any

Ungrouped