ConsoleSink
A LogSink that writes log events to standard output using println.
Suitable for command-line tools, desktop apps, and server-side environments where platform-native logging (e.g. Logcat, NSLog) is not available or desired.
The output format is controlled by logFormatter. Defaults to LogFormatters.default without emoji.
Example:
LoggerFactory.install(
LoggerConfig.Builder()
.addSink(ConsoleSink())
// or with a custom formatter
.addSink(ConsoleSink(LogFormatters.json(showEmoji = false)))
.build()
)Content copied to clipboard