package logs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The type for source specific logging functions.

Log functions

val msg : level -> 'a log
val app : 'a log

app is msg App.

val err : 'a log

err is msg Error.

val warn : 'a log

warn is msg Warning.

val info : 'a log

info is msg Info.

val debug : 'a log

debug is msg Debug.

val kmsg : (unit -> 'b) -> level -> ('a, 'b) msgf -> 'b

Logging result value Errors

val on_error : ?level:level -> ?header:string -> ?tags:Tag.set -> pp:(Format.formatter -> 'b -> unit) -> use:('b -> 'a) -> ('a, 'b) Pervasives.result -> 'a
val on_error_msg : ?level:level -> ?header:string -> ?tags:Tag.set -> use:(unit -> 'a) -> ('a, [ `Msg of string ]) Pervasives.result -> 'a
OCaml

Innovation. Community. Security.