Import std.log.sinks
ConsoleSink
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.
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.
Report an issue with this page or with FutureBlitz on GitHub.