val eval : ?context:Context.t ‑> ?capture:bool ‑> ?log:(Shexp_sexp.Std.Sexp.t ‑> unit) ‑> 'a t ‑> 'a
Call the given log function for every event. The log function default to printing to stderr.
If capture
is true
, then anything printed on the original stdout
/stderr
is
captured and becomes part of the trace.