Easy_logging.HandlersSourceDefault implementation of a Handlers module.
This is the Handlers module. It provides simple yet adaptable handlers implementation.
Type definitions
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 to create handlers that output to stdout or stderr.
Module to create handlers that output to a file.
Used 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)) Sets the formatter of a handler.