Module Codex_log.Tracelog_Instance

val error : 'a Tracelog.log -> unit

Printing from most to least important. info and debug levels are not printed by default.

val warning : 'a Tracelog.log -> unit
val notice : 'a Tracelog.log -> unit
val info : 'a Tracelog.log -> unit
val debug : 'a Tracelog.log -> unit
val fatal : 'a Tracelog.log -> 'b

Classic error messages. Fatal will raise the Fatal exception.

val not_yet_implemented : 'a Tracelog.log -> unit
val trace : 'a Tracelog.log -> ?loc:Tracelog.location -> ?bintrace:'c Syntax_tree.Location_identifier.t -> ?pp_ret:(Stdlib.Format.formatter -> 'b -> unit) -> (unit -> 'b) -> 'b

trace log pp_ret f first display log, then executes f and prints its return value using pp_ret.

val fatal_handler : ('a -> 'b) -> 'a -> 'b

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.