Legend:
Library
Module
Module type
Parameter
Class
Class type
Classic logging Methods
Each of these methods takes an optional string list of tags, then a set of parameters the way a printf function does. If the log level of the instance is low enough, a log item will be created theb passed to the handlers.
method flash : 'a. ?tags:string list->('a, unit, string, unit)Stdlib.format4->'a
method error : 'a. ?tags:string list->('a, unit, string, unit)Stdlib.format4->'a
method warning : 'a. ?tags:string list->('a, unit, string, unit)Stdlib.format4->'a
method info : 'a. ?tags:string list->('a, unit, string, unit)Stdlib.format4->'a
method trace : 'a. ?tags:string list->('a, unit, string, unit)Stdlib.format4->'a
method debug : 'a. ?tags:string list->('a, unit, string, unit)Stdlib.format4->'a
Lazy logging methods
Each of these methods takes a string lazy_t as an input (as well as the optional tags. If the log level of the instance is low enough, the lazy value will forced into a string, a log item will be created then passed to the handlers.
Example:
logger#ldebug (lazy (heavy_calculation () ))
method ldebug : ?tags:string list->string lazy_t-> unit
method ltrace : ?tags:string list->string lazy_t-> unit
method linfo : ?tags:string list->string lazy_t-> unit
method lwarning : ?tags:string list->string lazy_t-> unit
method lerror : ?tags:string list->string lazy_t-> unit
method lflash : ?tags:string list->string lazy_t-> unit
String logging methods
Each of these methods takes a string as an input (as well as the optional tags).
Example:
logger#sdebug string_variable
method sdebug : ?tags:string list->string -> unit
method strace : ?tags:string list->string -> unit
method sinfo : ?tags:string list->string -> unit
method swarning : ?tags:string list->string -> unit