Module Topkg.Log
Topkg log.
Reporting levels
val level : unit -> level optionlevel ()is the current reporting level.
val set_level : level option -> unitset_level lsets the current reporting level tol.
val level_to_string : level option -> stringlevel_to_string lconvertslto an unspecified human-readable US-ASCII string that can be parsed back bylevel_of_string.
val level_of_string : string -> (level option, [ `Msg of string ]) Result.resultlevel_of_string sparses the representation oflevel_to_stringfroms.
Log functions
type 'a msgf= (?header:string -> ('a, Stdlib.Format.formatter, unit) Stdlib.Pervasives.format -> 'a) -> unit
val msg : level -> 'a msgf -> unitmsg l (fun m -> m fmt ...)logs with levella message formatted withfmt.
val app : 'a msgf -> unitappis msgApp.
val err : 'a msgf -> uniterrismsg Error.
val warn : 'a msgf -> uniterrismsg Warning.
val info : 'a msgf -> uniterrismsg Info.
val debug : 'a msgf -> uniterrismsg Debug.