create
Creates an instance of TraceFeatureMessageFileWriter for writing feature messages to a file.
Return
A new instance of TraceFeatureMessageFileWriter configured with the specified parameters.
Parameters
The path where feature messages will be written.
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.
Optional lambda function for custom formatting of FeatureMessage instances. If not provided, a default formatting strategy will be used.
Creates a TraceFeatureMessageFileWriter that writes to the given java.nio.file.Path using a custom OutputStream opener.
Return
A new TraceFeatureMessageFileWriter instance.
Parameters
The file path where trace events will be written.
A function that opens an OutputStream for the given path. Defaults to Files.newOutputStream.
Optional custom formatter for trace events.