package bap-std

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Logging event.

type level =
  1. | Debug
  2. | Info
  3. | Warning
  4. | Error
type info = {
  1. level : level;
  2. section : string;
  3. message : string;
}
type event +=
  1. | Message of info
val message : level -> section:string -> ('a, Format.formatter, unit) Core_kernel.Std.format -> 'a

message level ~section fmt ... send a message of the specified level and section.

Do not use this function directly, instead include the instantiation of a Self functor, and use corresponding logging functions, e.g.,

            include Self()
            (* ... *)
            info "created some %s" "thing"
OCaml

Innovation. Community. Security.