LogChannel

interface LogChannel<T>

A log channel represents a named stream of typed data within a FateWeaver log.

Each channel has a unique name and is associated with a specific schema that defines how objects of type T are serialized. Channels provide a way to organize and separate different types of log data within the same log file.

Parameters

T

The type of objects that can be written to this channel

Inheritors

Properties

Link copied to clipboard
abstract val name: String

The unique name of this channel within the log.

Link copied to clipboard
abstract val schema: FateSchema<T>

The schema used to serialize objects of type T for this channel.

Functions

Link copied to clipboard
abstract fun put(obj: T)

Writes an object to this channel.