Logger
eff Logger
SourceAn effect used to log messages.
Operations
def log(s: Severity, m: String): Unit
SourceLogs the given message m
at the given severity s
.
Definitions
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 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.