package easy_logging

  1. Overview
  2. Docs

Default implementation of a Logging module.

type level =
  1. | Debug
  2. | Trace
  3. | Info
  4. | Warning
  5. | Error
  6. | Flash
  7. | NoLevel

Possible level of a log item.

val level_of_string : string -> (level, string) result
val show_level : level -> string
val pp_level : Format.formatter -> level -> unit
module type HandlersT = sig ... end
val debug : bool ref
class logger : ?parent:logger option -> string -> object ... end
val make_logger : ?propagate:bool -> string -> level -> Handlers.desc list -> logger

make_logger name level handlers_descs creates a new logger instance from the given arguments, then register it internally, and returns it.

val get_logger : string -> logger

Returns a registered logger by name.

OCaml

Innovation. Community. Security.