InMemoryLogger

com.ossuminc.riddl.utils.InMemoryLogger

A Logger which captures logged lines into an in-memory buffer, useful for testing purposes.

Attributes

Source
Logging.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Logger
class Object
trait Matchable
class Any
Show all

Members list

Type members

Classlikes

case class Line(level: Lvl, msg: String)

Attributes

Source
Logging.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def lines(): Iterator[Line]

Returns an Iterator of all lines logged to this logger, oldest-first

Returns an Iterator of all lines logged to this logger, oldest-first

Attributes

Source
Logging.scala
def write(level: Lvl, s: String): Unit

Attributes

Source
Logging.scala

Inherited methods

protected def count(level: Lvl): Unit

Attributes

Inherited from:
Logger
Source
Logging.scala
final def error(s: => String): Unit

Attributes

Inherited from:
Logger
Source
Logging.scala
protected def highlight(level: Lvl, s: String): String

Attributes

Inherited from:
Logger
Source
Logging.scala
final def info(s: => String): Unit

Attributes

Inherited from:
Logger
Source
Logging.scala
final def missing(s: => String): Unit

Attributes

Inherited from:
Logger
Source
Logging.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def severe(s: => String, xcptn: Throwable): Unit

Attributes

Inherited from:
Logger
Source
Logging.scala
final def severe(s: => String): Unit

Attributes

Inherited from:
Logger
Source
Logging.scala
final def style(s: => String): Unit

Attributes

Inherited from:
Logger
Source
Logging.scala

Attributes

Inherited from:
Logger
Source
Logging.scala
final def usage(s: => String): Unit

Attributes

Inherited from:
Logger
Source
Logging.scala
final def warn(s: => String): Unit

Attributes

Inherited from:
Logger
Source
Logging.scala