package easy_logging_yojson

  1. Overview
  2. Docs

Parameters

module H : sig ... end

Signature

include sig ... end
type level =
  1. | Debug
  2. | Trace
  3. | Info
  4. | Warning
  5. | Error
  6. | Flash
  7. | NoLevel
val show_level : Easy_logging__.Logging_types.level -> string
val pp_level : Format.formatter -> Easy_logging__.Logging_types.level -> unit
val level_of_string : string -> (Easy_logging__.Logging_types.level, string) result
val debug : bool ref
class logger : ?parent:logger option -> string -> object ... end
val root_logger : logger
module Infra : sig ... end
val _tree_to_yojson : Infra.t -> [> `Assoc of (string * [> `List of 'a list | `String of string ]) list ] as 'a
val tree_to_yojson : unit -> [> `Assoc of (string * [> `List of 'a list | `String of string ]) list ] as 'a
val handlers_config : H.config ref
val set_handlers_config : H.config -> unit
val get_logger : string -> logger
val make_logger : ?propagate:bool -> string -> level -> H.desc list -> logger
type config_logger = {
  1. name : string;
  2. level : level;
  3. handlers : H.desc list;
  4. propagate : bool;
}
type global_config = {
  1. handlers_config : H.config;
  2. loggers_config : config_logger list;
}
val load_global_config : Yojson.Safe.t -> unit
val load_global_config_str : string -> unit
val load_global_config_file : string -> unit