File Sink
class FileSink(val minLevel: LogLevel = LogLevel.INFO, maxLines: Int = 2000, includeTimestamps: Boolean = true) : LoggingSink
In-memory ring buffer logging sink with file persistence support.
Maintains a fixed-size circular buffer of log entries. Oldest entries are discarded when the buffer is full. Entries can be exported as formatted text.
Security (BSI APP.4.4.A3): Logs are stored in memory only and can be explicitly exported. No automatic disk persistence.
Thread Safety: Uses ConcurrentLinkedDeque for thread-safe operations.
Since
0.4.0
Constructors
Properties
Functions
Link copied to clipboard
Get entries since a given timestamp.
Link copied to clipboard
Get formatted log as JSON array for structured export.
Link copied to clipboard
Get formatted log text for export.
Link copied to clipboard
Get all buffered log entries.
Link copied to clipboard
Get statistics about the buffer.