StringLogger

com.ossuminc.riddl.utils.StringLogger
case class StringLogger(capacity: Int)(using pc: PlatformContext) extends Logger

A logger that doesn't do I/O but collects the messages in a buffer

Value parameters

capacity

The initial capacity of the buffer, defaults to 1K

pc

The PlatformContext to use

Attributes

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

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Logging.scala
override def write(level: Lvl, s: String): Unit

Attributes

Definition Classes
Source
Logging.scala

Inherited methods

protected def count(level: Lvl): Unit

Attributes

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

Syntactic sugar for write(Error, s)

Syntactic sugar for write(Error, s)

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

Syntactic sugar for write(Info, s)

Syntactic sugar for write(Info, s)

Attributes

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

Syntactic sugar for write(Missing, s)

Syntactic sugar for write(Missing, s)

Attributes

Inherited from:
Logger
Source
Logging.scala

Attributes

Inherited from:
Product

Attributes

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

Syntactic sugar for write(Severe, <message-derived-from-exception>)

Syntactic sugar for write(Severe, <message-derived-from-exception>)

Attributes

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

Syntactic sugar for write(Severe, s)

Syntactic sugar for write(Severe, s)

Attributes

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

Syntactic sugar for write(Style, s)

Syntactic sugar for write(Style, s)

Attributes

Inherited from:
Logger
Source
Logging.scala

Generate a summary on the number of messages logged for each severity Lvl.

Generate a summary on the number of messages logged for each severity Lvl.

Attributes

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

Syntactic sugar for write(Usage, s)

Syntactic sugar for write(Usage, s)

Attributes

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

Syntactic sugar for write(Warning, s)

Syntactic sugar for write(Warning, s)

Attributes

Inherited from:
Logger
Source
Logging.scala