package nloge

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = [
  1. | `Emergency
  2. | `Alert
  3. | `Critical
  4. | `Error
  5. | `Warning
  6. | `Notice
  7. | `Info
  8. | `Debug
]

t represents syslog-style levels

val equal : t -> t -> Ppx_deriving_runtime.bool
val compare : t -> t -> Ppx_deriving_runtime.int
type Effect.t +=
  1. | Get : t Effect.t

Get refers to the current logging level.

val get_level : unit -> t
val parse : string -> t option

parses upper, lower, and initial capital letter cases.

parse "DEBUG" = parse "debug" = parse "Debug" = Some `Debug
val pp : Format.formatter -> t -> unit

pp prints level with upper capital

pp Format.std_formatter `Debug (* -> DEBUG *)
val show : t -> string
OCaml

Innovation. Community. Security.