Module Logs_stdo

module Logs_stdo: sig .. end
Standard outputs reporter for Logs.

Release 0.4.2 - Daniel Bünzli <daniel.buenzl i@erratique.ch>

Reporter



val reporter : ?prefix:string option ->
?dst:Format.formatter -> ?app:Format.formatter -> unit -> Logs.reporter
reporter ~prefix ~dst ~app () is a reporter that reports Logs.App level messages on app (defaults to Format.std_formatter) and all other levels on dst (defaults to Format.err_formatter).

If prefix is Some pre messages on dst are prefixed by pre which is recommended if you are doing a simple command line tool defaults to Some (Printf.sprintf "%s: " (Filename.basename Sys.argv.(0)).

ANSI colors will be used in the output if the formatters are configured to do so, see Fmt.set_style_renderer and Fmt_tty. Consult a full setup example.