package lsp

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

Log module * * 1. Provide functions to log arbitrary messages, filtered according to a * section and a verbosity level. * * 2. Allow to setup a destination for these log messages. * *

module Title : sig ... end
val register_consumer : ((string * Title.t * string) -> unit) -> unit
val log : section:string -> title:Title.t -> ('b, unit, string, unit) format4 -> 'b
val fmt : unit -> (Format.formatter -> unit) -> string
val json : unit -> (unit -> Yojson.t) -> string
val exn : unit -> exn -> string
val log_flush : unit -> unit
type notification = {
  1. section : string;
  2. msg : string;
}
val notify : section:string -> ('b, unit, string, unit) format4 -> 'b
val with_notifications : notification list ref -> (unit -> 'a) -> 'a
val with_log_file : string option -> ?sections:string list -> (unit -> 'a) -> 'a
type 'a printf = title:Title.t -> ('a, unit, string, unit) format4 -> 'a
type logger = {
  1. log : 'a. 'a printf;
}
val for_section : string -> logger
OCaml

Innovation. Community. Security.