package conex

  1. Overview
  2. Docs

Module type Conex_utils.LOGSSource

LOGS is a subset of the Logs library, providing four log streams.

Sourcemodule Tag : sig ... end

Tag, as in logs

Sourcetype ('a, 'b) msgf = (?header:string -> ?tags:Tag.set -> ('a, Format.formatter, unit, 'b) format4 -> 'a) -> 'b

msgf

Sourcetype 'a log = ('a, unit) msgf -> unit
Sourcetype src
Sourceval warn_count : unit -> int

warn_count () is the number of warning messages.

Sourceval debug : ?src:src -> 'a log

debug k logs k, a to the debug stream

Sourceval info : ?src:src -> 'a log

info k logs k, a to the information stream

Sourceval warn : ?src:src -> 'a log

warn k logs k, a to the warning stream