package oasis

  1. Overview
  2. Docs

Messages to user

These functions display information depending on the verbosity level set in OASISContext.t. They use Printf.fprintf syntax to output. You can use a ~after function, that will be called if something has been displayed.

  • author Sylvain Le Gall
val generic_message : ctxt:OASISContext.t -> [ `Debug | `Info | `Warning | `Error ] -> ('a, unit, string, unit) Pervasives.format4 -> 'a

Generic message.

val debug : ctxt:OASISContext.t -> ('a, unit, string, unit) Pervasives.format4 -> 'a

Print a debug message.

val info : ctxt:OASISContext.t -> ('a, unit, string, unit) Pervasives.format4 -> 'a

Print information message.

val warning : ctxt:OASISContext.t -> ('a, unit, string, unit) Pervasives.format4 -> 'a

Print a warning message.

val error : ctxt:OASISContext.t -> ('a, unit, string, unit) Pervasives.format4 -> 'a

Print an error message.

OCaml

Innovation. Community. Security.