module

Deadfinder::Logger

Class methods

apply_options(options : Options)
Source
buffered

Collects everything the block logs (from this fiber and any fiber that inherits the buffer via with_buffer) and writes it out as one block on the way out, so concurrently scanned targets never shred each other's output.

Source
current_buffer

The buffer the current fiber writes into, if any. Work fibers spawned on a target's behalf must be handed this explicitly: they are separate keys in the registry and would otherwise write straight to the sink, landing in the middle of some other target's block.

Source
debug(text : String)
Source
debug=(value : Bool)
Source
debug?
Source
error(text : String)
Source
found(text : String)
Source
info(text : String)
Source
log(prefix : String, text : String, color : Symbol)
Source
reset_sink
Source
silent=(value : Bool)
Source
silent?
Source
sink
Source
sink=(io : IO)
Source
sub_complete(text : String)
Source
sub_info(text : String)
Source
sub_log(prefix : String, is_end : Bool, text : String, color : Symbol)
Source
target(text : String)
Source
verbose(text : String)
Source
verbose=(value : Bool)
Source
verbose?
Source
verbose_ok(text : String)
Source
with_buffer(buffer : IO::Memory | Nil, &)

Routes everything the block logs into buffer. A nil buffer means the parent was not buffering (single-target run), so this is a pass-through.

Source