@@ -133,7 +133,7 @@ let set_utc () = State.utc_timezone := true
133133 By default, it reads the configuration in the environment variable [DEVKIT_LOG]
134134 which can be overwritten using the optional [process_name] parameter.
135135
136- The value of environment variable should match the following grammar: [(\[<facil|prefix*>=\]debug|info|warn|error\[,\])*]
136+ The value of environment variable should match the following grammar: [(\[<facil|prefix*>=\]debug|info|warn|error|critical \[,\])*]
137137
138138 @raise Failure on invalid level values of wrong format
139139*)
@@ -184,12 +184,14 @@ let debug_s = make_s debug_s in
184184let warn_s = make_s warn_s in
185185let info_s = make_s info_s in
186186let error_s = make_s error_s in
187+ let critical_s = make_s critical_s in
187188let put_s level = make_s (put_s level) in
188189object
189190method debug_s = debug_s
190191method warn_s = warn_s
191192method info_s = info_s
192193method error_s = error_s
194+ method critical_s = critical_s
193195method put_s = put_s
194196
195197(* expecting direct inlining to be faster but it is not o_O
@@ -201,6 +203,7 @@ method debug : 'a. 'a pr = make debug_s
201203method warn : 'a. 'a pr = make warn_s
202204method info : 'a. 'a pr = make info_s
203205method error : 'a. 'a pr = make error_s
206+ method critical : 'a. 'a pr = make critical_s
204207method put : 'a. Logger. level -> 'a pr = fun level -> make (put_s level)
205208
206209method allow (level:Logger.level ) = Logger. set_filter facil level
0 commit comments