Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Output for tracing.
`Stdout
will enable tracing and print events on stdout`Stderr
will enable tracing and print events on stderr`File "foo"
will enable tracing and print events into file named "foo"val subscriber : out:[< output ] -> unit -> Trace_subscriber.t
A subscriber emitting TEF traces into out
.
val collector : out:[< output ] -> unit -> Trace_core.collector
Make a collector that writes into the given output. See setup
for more details.
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. since 0.2 a () argument was added.