Module Logs_fmt
Format colorful reporter for Logs.
v0.7.0 - homepage
Reporter
val reporter : ?pp_header:(Logs.level * string option) Fmt.t -> ?app:Stdlib.Format.formatter -> ?dst:Stdlib.Format.formatter -> unit -> Logs.reporterreporteris likeLogs.format_reporterexcept ANSI colors may be used in message header rendering if the formatters are configured to do so; seeFmt.set_style_rendererandFmt_tty.Consult a full command line setup example.
Colored message headers
val app_style : Fmt.styleapp_styleis the style used to render headers at app level.
val err_style : Fmt.styleerr_styleis the style used to render headers at error level.
val warn_style : Fmt.stylewarn_styleis the style used to render headers at warning level.
val info_style : Fmt.styleinfo_styleis the style used to render headers at info level.
val debug_style : Fmt.styledebug_styleis the style used to render headers at debug level.
val pp_header : (Logs.level * string option) Fmt.tpp_headeris likeLogs.pp_headerbut may use ANSI colors if the formatter is configured to do so, seeFmt.set_style_rendererandFmt_tty.