FateLogBackend

Records logged values to a FateLogWriter, one channel per path.

The writer's sink decides where the values go. That can be a file, a live stream, or both through a gay.zharel.fateweaver.log.MultiSink. Closing this backend closes the writer.

Each value is written with the timestamp the table gave it, so two backends fed the same value agree on when it happened.

Constructors

Link copied to clipboard
constructor(writer: FateLogWriter)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun <T> entry(path: String, schema: FateSchema<T>): FateEntry<T>

Returns the entry for path, creating it if this backend has not seen the path.

Link copied to clipboard
open override fun toString(): String