Skip to content
FutureBlitz

    Install

    Import std.log.sinks

    ConsoleSink

    std.log.sinks

    function

    Public Function ConsoleSink(): Sendable Func(LogRecord)

    A sink that writes each line to stderr as LogLine has it, with its time, colored when stderr is a terminal that shows colors and NO_COLOR isn't set. Lines from threads at once don't mix.

    std/log/sinks.fb, line 29

    function

    Public Function ConsoleSink(colors: Bool, times: Bool): Sendable Func(LogRecord)

    A sink that writes each line to stderr, with its level colored or not, and its time or not.

    std/log/sinks.fb, line 32

    Report an issue with this page or with FutureBlitz on GitHub.