package easy_logging_yojson

  1. Overview
  2. Docs
type log_formatter = Easy_logging__.Logging_types.log_item -> string
type filter = Easy_logging__.Logging_types.log_item -> bool
type t = Easy_logging__Handlers.t = {
  1. mutable fmt : log_formatter;
  2. mutable level : Easy_logging__.Logging_types.level;
  3. mutable filters : filter list;
  4. output : string -> unit;
}
module CliHandler : sig ... end
module FileHandler : sig ... end
type config = Easy_logging__Handlers.config = {
  1. file_handlers : FileHandler.config;
}
val default_config : config
type desc = Easy_logging__Handlers.desc
val make : ?config:config -> desc -> t
val set_level : t -> Easy_logging__.Logging_types.level -> unit
val set_formatter : t -> log_formatter -> unit
val add_filter : t -> filter -> unit
val apply : t -> Easy_logging__.Logging_types.log_item -> unit
module FileHandlers : sig ... end
type config_ = Easy_logging_yojson__.Easy_logging_yojson_aux.E.Handlers.config = {
  1. file_handlers : FileHandlers.config;
}
val config__to_yojson : config_ -> Yojson.Safe.t
val config__of_yojson : Yojson.Safe.t -> config_ Ppx_deriving_yojson_runtime.error_or
val config_to_yojson : config_ -> Yojson.Safe.t
val config_of_yojson : Yojson.Safe.t -> config_ Ppx_deriving_yojson_runtime.error_or
type cli_json_params = {
  1. level : Easy_logging__Logging_types.level;
}
val cli_json_params_to_yojson : cli_json_params -> Yojson.Safe.t
val cli_json_params_of_yojson : Yojson.Safe.t -> cli_json_params Ppx_deriving_yojson_runtime.error_or
type cli_json_desc = {
  1. cli : cli_json_params;
}
val cli_json_desc_to_yojson : cli_json_desc -> Yojson.Safe.t
val cli_json_desc_of_yojson : Yojson.Safe.t -> cli_json_desc Ppx_deriving_yojson_runtime.error_or
type cli_err_json_desc = {
  1. cli_err : cli_json_params;
}
val cli_err_json_desc_to_yojson : cli_err_json_desc -> Yojson.Safe.t
val cli_err_json_desc_of_yojson : Yojson.Safe.t -> cli_err_json_desc Ppx_deriving_yojson_runtime.error_or
type file_json_desc_params = {
  1. filename : string;
  2. level : Easy_logging__Logging_types.level;
}
val file_json_desc_params_to_yojson : file_json_desc_params -> Yojson.Safe.t
val file_json_desc_params_of_yojson : Yojson.Safe.t -> file_json_desc_params Ppx_deriving_yojson_runtime.error_or
type file_json_desc = {
  1. file : file_json_desc_params;
}
val file_json_desc_to_yojson : file_json_desc -> Yojson.Safe.t
val file_json_desc_of_yojson : Yojson.Safe.t -> file_json_desc Ppx_deriving_yojson_runtime.error_or
type rotating_file_json_desc_params = {
  1. filename : string;
  2. level : Easy_logging__Logging_types.level;
  3. max_kb : int;
  4. backup_count : int;
}
val rotating_file_json_desc_params_to_yojson : rotating_file_json_desc_params -> Yojson.Safe.t
val rotating_file_json_desc_params_of_yojson : Yojson.Safe.t -> rotating_file_json_desc_params Ppx_deriving_yojson_runtime.error_or
type rotating_file_json_desc = {
  1. rotating_file : rotating_file_json_desc_params;
}
val rotating_file_json_desc_to_yojson : rotating_file_json_desc -> Yojson.Safe.t
val rotating_file_json_desc_of_yojson : Yojson.Safe.t -> rotating_file_json_desc Ppx_deriving_yojson_runtime.error_or
val desc_of_yojson : Yojson.Safe.t -> (desc, string) Stdlib.result
val desc_to_yojson : desc -> Yojson.Safe.t
OCaml

Innovation. Community. Security.