CallBackLogger

com.ossuminc.riddl.utils.CallBackLogger
case class CallBackLogger(callback: (Lvl, String) => Unit)(using pc: PlatformContext) extends Logger

A logger that delegates to a callback function.

Value parameters

callback

The function to call when a messages needs logging

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 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