Module Dtools.Log

module Log: sig .. end

type t = <
   active : int -> bool;
   f : 'a. int -> ('a, unit, string, unit) Stdlib.format4 -> 'a;
>

Type for loggers.

type custom_log = {
   timestamp : bool;
   exec : string -> unit;
}
val add_custom_log : string -> custom_log -> unit

Add a custom logging functions.

val rm_custom_log : string -> unit

Remove a custom logging functions.

val make : Dtools.Conf.path -> t

Make a logger labeled according to the given path.

val start : Dtools.Init.t

An atom that starts the logging.

val stop : Dtools.Init.t

An atom that stops the logging.

val conf : Dtools.Conf.ut
val conf_level : int Dtools.Conf.t
val conf_unix_timestamps : bool Dtools.Conf.t
val conf_stdout : bool Dtools.Conf.t
val conf_file : bool Dtools.Conf.t
val conf_file_path : string Dtools.Conf.t
val conf_file_append : bool Dtools.Conf.t
val conf_file_perms : int Dtools.Conf.t
val args : (string list * Stdlib.Arg.spec * string) list

A set of command line options to be used with the Arg module.