Message_templates.File_sinkFile sink - outputs log events to a file with optional rolling
The file sink writes log events to files on disk with support for automatic log rotation based on time intervals.
Rolling intervals:
val create :
?output_template:string ->
?rolling:rolling_interval ->
string ->
tCreate a file sink.
val emit : t -> Log_event.t -> unitEmit a log event to the file
val flush : t -> unitFlush the file buffer
val close : t -> unitClose the file sink and underlying channel