Easy_logging.HandlersDefault implementation of a Handlers module.
This is the Handlers module. It provides simple yet adaptable handlers implementation.
type t = {mutable fmt : log_formatter;mutable level : Easy_logging__.Logging_types.level;mutable filters : filter list;output : string -> unit;}Type of a handler
A handler is made of:
output function, that takes a string and does the output job.module CliHandler : sig ... endModule to create handlers that output to stdout or stderr.
module FileHandler : sig ... endModule to create handlers that output to a file.
val default_config : configUsed for quick handler creation, e.g.
Cli handler: outputs colored messages to stdout
let h = Handlers.make (Cli Debug) File handler : outputs messages to a given file
let h = Handlers.make (File ("filename", Debug)) val set_level : t -> Easy_logging__.Logging_types.level -> unitSets the level of a handler.
val set_formatter : t -> log_formatter -> unitSets the formatter of a handler.
val apply : t -> Easy_logging__.Logging_types.log_item -> unitAuxiliary function.