Batteries user guide : BatLog.Level_sig

# Module type BatLog.Level_sig

    module type Level_sig = sig .. end

The details of a level scheme for verbosity-level loggers

    type t

A type for level values, usually a polymorphic variant

Convert each level to a string

    val to_string : t -> string

The default level for loggers created with this; log messages with level less than this won't be printed by default.

    val default_level : t

a comparison function between levels, to know whether logging at a particular level should be printed

    val compare : t -> t -> int