omod.support
Omod_support.Log
Logging.
omod
type t = {
f : 'a. ('a, Format.formatter, unit) format -> 'a;
}
The type for logging functions.
val nil : t
nil is a logging function that drops logging.
nil
val std : t
std is a logging function that format on Format.std_formatter and prepends messages by the executable basename.
std
Format.std_formatter
val err : t
err is like std but formats on Format.err_formatter.
err
Format.err_formatter
val time : t -> string -> (unit -> 'a) -> 'a
time l label f logs the processor time of f () on l.
time l label f
f ()
l