Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val collector :
out:[ `File of string | `Stderr | `Stdout ] ->
unit ->
Trace.collector
Make a collector that writes into the given output. See setup
for more details.
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 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.