Module Message_templates.Composite_sink

Composite sink - routes log events to multiple sinks

type sink_fn = {
  1. emit_fn : Log_event.t -> unit;
  2. flush_fn : unit -> unit;
  3. close_fn : unit -> unit;
}
type t = sink_fn list
val emit : t -> Log_event.t -> unit

Emit to all sinks

val flush : t -> unit

Flush all sinks

val close : t -> unit

Close all sinks

val create : sink_fn list -> t

Create a composite sink from sink functions