create

fun create(targetPath: ERROR CLASS: Symbol not found for KotlinPath, sinkOpener: (@R|kotlin/ParameterName|(name = String(path)) ERROR CLASS: Symbol not found for KotlinPath) -> ERROR CLASS: Symbol not found for Sink? = null, format: (ERROR CLASS: Symbol not found for FeatureMessage) -> String? = null): TraceFeatureMessageFileWriter<ERROR CLASS: Symbol not found for KotlinPath>(source)

Creates an instance of TraceFeatureMessageFileWriter for writing feature messages to a file.

Return

A new instance of TraceFeatureMessageFileWriter configured with the specified parameters.

Parameters

targetPath

The path where feature messages will be written.

sinkOpener

A lambda function that opens a Sink for writing files, managing its lifecycle. If not provided, a default sink opener using the system file system will be used.

format

Optional lambda function for custom formatting of FeatureMessage instances. If not provided, a default formatting strategy will be used.


fun create(targetPath: Path, streamOpener: (path: Path) -> OutputStream? = null, format: (ERROR CLASS: Symbol not found for FeatureMessage) -> String? = null): TraceFeatureMessageFileWriter<Path>(source)

Creates a TraceFeatureMessageFileWriter that writes to the given java.nio.file.Path using a custom OutputStream opener.

Return

A new TraceFeatureMessageFileWriter instance.

Parameters

targetPath

The file path where trace events will be written.

streamOpener

A function that opens an OutputStream for the given path. Defaults to Files.newOutputStream.

format

Optional custom formatter for trace events.