mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
tef: expose subscriber_jsonl
This commit is contained in:
parent
bebd037803
commit
59db458fec
2 changed files with 9 additions and 0 deletions
|
|
@ -408,6 +408,9 @@ module Private_ = struct
|
|||
|
||||
let on_tracing_error = on_tracing_error
|
||||
|
||||
let subscriber_jsonl ~finally ~out () =
|
||||
subscriber_ ~finally ~mode:`Jsonl ~out ()
|
||||
|
||||
let collector_jsonl ~finally ~out () : collector =
|
||||
collector_ ~finally ~mode:`Jsonl ~out ()
|
||||
|
||||
|
|
|
|||
|
|
@ -48,6 +48,12 @@ module Private_ : sig
|
|||
|
||||
val on_tracing_error : (string -> unit) ref
|
||||
|
||||
val subscriber_jsonl :
|
||||
finally:(unit -> unit) ->
|
||||
out:[ `File_append of string | `Output of out_channel ] ->
|
||||
unit ->
|
||||
Trace_subscriber.t
|
||||
|
||||
val collector_jsonl :
|
||||
finally:(unit -> unit) ->
|
||||
out:[ `File_append of string | `Output of out_channel ] ->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue