Logger
eff LoggerSourceAn effect used to log messages.
Operations
def log(s: Severity, m: RichString): Unit \ Logger
SourceLogs the given message m at the given severity s.
Definitions
def debug(m: a): Unit \ Logger + Aef[a] with Formattable[a]
SourceLogs the message m at the Debug level.
def fatal(m: a): Unit \ Logger + Aef[a] with Formattable[a]
SourceLogs the message m at the Fatal level.
def handle(f: a -> b \ ef): a -> b \ (ef - Logger) + IO
SourceHandles the Logger effect of the given function f.
In other words, re-interprets the Logger effect using the IO effect.
def info(m: a): Unit \ Logger + Aef[a] with Formattable[a]
SourceLogs the message m at the Info level.
@DefaultHandler def runWithIO(f: Unit -> a \ ef): a \ (ef - Logger) + IO
SourceRuns the Logger effect of the given function f.
In other words, re-interprets the Logger effect using the IO effect.
def trace(m: a): Unit \ Logger + Aef[a] with Formattable[a]
SourceLogs the message m at the Trace level.
def warn(m: a): Unit \ Logger + Aef[a] with Formattable[a]
SourceLogs the message m at the Warn level.