package easy_logging_yojson

  1. Overview
  2. Docs
type level = Easy_logging__Logging_types.level =
  1. | Debug
  2. | Trace
  3. | Info
  4. | Warning
  5. | Error
  6. | Flash
  7. | NoLevel
val level_of_string : string -> (level, string) Stdlib.result
val show_level : level -> string
val pp_level : Stdlib.Format.formatter -> level -> unit
type log_item = Easy_logging__Logging_types.log_item = {
  1. level : level;
  2. logger_name : string;
  3. msg : string;
  4. tags : string list;
  5. timestamp : float;
}
val debug : bool Stdlib.ref
class logger : ?parent:logger option -> string -> object ... end
val get_logger : string -> logger
val make_logger : ?propagate:bool -> string -> level -> Easy_logging__.Handlers.desc list -> logger
val handlers_config : Easy_logging__.Handlers.config Stdlib.ref
val set_handlers_config : Easy_logging__.Handlers.config -> unit
val tree_to_yojson : unit -> [> `Assoc of (string * [> `List of 'b list | `String of string ]) list ] as 'b
type config_logger = {
  1. name : string;
  2. level : level;
  3. handlers : Easy_logging__Handlers.desc list;
  4. propagate : bool;
}
val config_logger_of_yojson : Yojson.Safe.t -> config_logger Ppx_deriving_yojson_runtime.error_or
type global_config = {
  1. handlers_config : Easy_logging__Handlers.config;
  2. loggers_config : config_logger list;
}
val global_config_of_yojson : Yojson.Safe.t -> global_config Ppx_deriving_yojson_runtime.error_or
val load_global_config : Yojson.Safe.t -> unit
val load_global_config_str : string -> unit
val load_global_config_file : string -> unit
OCaml

Innovation. Community. Security.