mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
feat tef: accept a out_channel directly in the collector
This commit is contained in:
parent
0b6dc27556
commit
62837c5193
2 changed files with 2 additions and 1 deletions
|
|
@ -70,6 +70,7 @@ module Writer = struct
|
|||
| `File path -> open_out path, true
|
||||
| `File_append path ->
|
||||
open_out_gen [ Open_creat; Open_wronly; Open_append ] 0o644 path, true
|
||||
| `Output oc -> oc, false
|
||||
in
|
||||
let pid =
|
||||
if !Mock_.enabled then
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ module Internal_ : sig
|
|||
|
||||
val collector_jsonl :
|
||||
finally:(unit -> unit) ->
|
||||
out:[ `File_append of string ] ->
|
||||
out:[ `File_append of string | `Output of out_channel ] ->
|
||||
unit ->
|
||||
Trace_core.collector
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue