class Log::IOBackend
inherits Log::Backend
¶
A Log::Backend
that emits to an IO
(defaults to STDOUT).
Class methods¶
.new(io = STDOUT, *, formatter : Formatter = ShortFormat, dispatcher : Dispatcher::Spec = DispatchMode::Async)
¶
(io = STDOUT, *, formatter : Formatter = ShortFormat, dispatcher : Dispatcher::Spec = DispatchMode::Async)
Methods¶
#format(entry : Entry)
¶
(entry : Entry)
Emits the entry to the given io.
It uses the #formatter
to convert.