Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Emit traces by talking to the tldrs daemon
val collector : out:[ `File of string ] -> unit -> Trace_core.collector
Make a collector that writes into the given output. See setup
for more details.
val subscriber : out:[ `File of string ] -> unit -> Trace_subscriber.t
Make a subscriber that writes into the given output.
Output for tracing.
`File "foo"
will enable tracing and print events into file named "foo". The file is only written at exit.val setup : ?out:[ output | `Env ] -> unit -> unit
setup ()
installs the collector depending on out
.
val with_setup : ?out:[ output | `Env ] -> unit -> (unit -> 'a) -> 'a
with_setup () f
(optionally) sets a collector up, calls f()
, and makes sure to shutdown before exiting.