LoggingSink

interface LoggingSink

Interface for logging output destinations.

Sinks receive log entries from the StructuredLogger and output them to their respective destinations (Logcat, file, remote endpoint, etc.).

Security (BSI SYS.3.2.2.A12): Implementations must respect minLevel filtering to prevent verbose output in production.

Since

0.4.0

Inheritors

Properties

Link copied to clipboard
abstract val minLevel: LogLevel

Minimum log level this sink will accept. Entries below this level are silently discarded.

Functions

Link copied to clipboard
open fun accepts(level: LogLevel): Boolean

Check if this sink accepts entries at the given level.

Link copied to clipboard
open fun close()

Close this sink and release resources.

Link copied to clipboard
abstract fun emit(entry: LogEntry)

Emit a log entry to this sink.

Link copied to clipboard
open fun flush()

Flush any buffered entries.