Package-level declarations

LogSink is the output SPI (emit + optional flush). Bundled sinks: DefaultLogSink (routes to the platform-native logger), ConsoleSink (println), RemoteLogSink (delegates to a sender), and TestSink (capture for tests). Sinks compose: wrap another sink to redact, sample, or route.

Types

Link copied to clipboard
class ConsoleSink(logFormatter: LogEventFormatter = LogFormatters.default(false)) : LogSink

A LogSink that writes log events to standard output using println.

Link copied to clipboard
class DefaultLogSink(logFormatter: LogEventFormatter = LogFormatters.pretty(false)) : LogSink

A LogSink that delegates to the platform's native logging mechanism.

Link copied to clipboard
interface LogSink

Interface representing a destination for log events.

Link copied to clipboard
class RemoteLogSink(logFormatter: LogEventFormatter = LogFormatters.json(false), send: (String) -> Unit) : LogSink

A LogSink that sends log events to a remote destination via a provided send function.

Link copied to clipboard

A LogSink implementation designed for testing purposes. It stores all emitted LogEvents in an in-memory list for verification.