package codex
Module Stats.LogSource
Printing from most to least important. info and debug levels are not printed by default.
Classic error messages. Fatal will raise the Fatal exception.
Source
val trace :
'a Tracelog.log ->
?loc:Tracelog.location ->
?bintrace:'c Syntax_tree.Location_identifier.t ->
?pp_ret:(Format.formatter -> 'b -> unit) ->
(unit -> 'b) ->
'btrace log pp_ret f first display log, then executes f and prints its return value using pp_ret.
fatal_handler Fatal handler, will properly collect the backtrace for fatal and print it. It also collects other uncaught exception and returns an error message.