Module Logger.Make

Make(C) produces a logger module whose messages are prefixed with a timestamp, a color-coded level tag, and the component name C.name. fatal additionally calls Stdlib.exit 1 after logging.

Parameters

module C : LOG_CONFIG

Signature

val prefix : Dolog.Log.log_level -> string
val debug : ('a, Stdlib.out_channel, unit) Stdlib.format -> 'a
val info : ('a, Stdlib.out_channel, unit) Stdlib.format -> 'a
val warn : ('a, Stdlib.out_channel, unit) Stdlib.format -> 'a
val error : ('a, Stdlib.out_channel, unit) Stdlib.format -> 'a
val fatal : (unit, Stdlib.out_channel, unit) Stdlib.format -> 'a