TraceFeatureMessageFileWriter

expect constructor(targetPath: Path, sinkOpener: (Path) -> Sink, format: (FeatureMessage) -> String? = null)(source)

Parameters

targetPath

The path where feature messages will be written.

sinkOpener

Returns a Sink for writing to the file, this class manages its lifecycle.

format

Optional custom formatter for trace events

Type Parameters

Path

The type representing file paths in the file system

actual constructor(targetPath: Path, sinkOpener: (Path) -> ERROR CLASS: Symbol not found for Sink, format: (ERROR CLASS: Symbol not found for FeatureMessage) -> String?)(source)

Parameters

targetPath

The path where feature messages will be written.

sinkOpener

A function responsible for opening a Sink for file writing. This function ensures the lifecycle of the sink is properly managed. A default sink opener is available if not provided.

format

An optional lambda function for customizing the formatting of FeatureMessage instances before writing them to the file. If not provided, a default formatting strategy is used.

actual constructor(targetPath: Path, sinkOpener: (Path) -> Sink, format: (FeatureMessage) -> String?)(source)

Parameters

targetPath

The file where feature messages will be written.

sinkOpener

A lambda function that returns a Sink for writing to the file. The lifecycle of the sink is managed by this class.

format

An optional lambda function for custom formatting of FeatureMessage instances into their string representations. This can be used to apply specific serialization logic if required. If not provided, the default message trace representation is used.

Type Parameters

Path

The type representing the file path supported by the file system provider.