Module Utils.Logger

Structured logger with per-component name tags and color-coded levels.

Make(C) returns a module with debug/info/warn/error/fatal functions. fatal logs then calls Stdlib.exit 1.

type t = Dolog.Log.log_level

Re-export of Dolog.Log.log_level used as the --log CLI argument type.

val show : Dolog.Log.log_level -> string
val pp : Dolog.Log.log_level Fmt.t
val yojson_of_t : Dolog.Log.log_level -> [> `String of string ]
module type LOG_CONFIG = sig ... end
val timestamp : unit -> string
val color_reset : string
val color_of_level : Dolog.Log.log_level -> string
val string_of_level : Dolog.Log.log_level -> Base.String.t
module Make (C : LOG_CONFIG) : sig ... end

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.