Logger

com.ossuminc.riddl.utils.Logger
trait Logger(using pc: PlatformContext)

Base trait for all styles of loggers. Logger requires the "write" method be implemented which provides a style-specific way to handle the logging of a message.

Attributes

Source
Logging.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

protected def write(level: Lvl, s: String): Unit

Attributes

Source
Logging.scala

Concrete methods

protected def count(level: Lvl): Unit

Attributes

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

Syntactic sugar for write(Error, s)

Syntactic sugar for write(Error, s)

Attributes

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

Attributes

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

Syntactic sugar for write(Info, s)

Syntactic sugar for write(Info, s)

Attributes

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

Syntactic sugar for write(Missing, s)

Syntactic sugar for write(Missing, s)

Attributes

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

Syntactic sugar for write(Severe, s)

Syntactic sugar for write(Severe, s)

Attributes

Source
Logging.scala
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

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

Syntactic sugar for write(Style, s)

Syntactic sugar for write(Style, s)

Attributes

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

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

Syntactic sugar for write(Usage, s)

Syntactic sugar for write(Usage, s)

Attributes

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

Syntactic sugar for write(Warning, s)

Syntactic sugar for write(Warning, s)

Attributes

Source
Logging.scala