package simlog

  1. Overview
  2. Docs
module Level : sig ... end

The logger gets the time, Queue traces, level, thread information, and so on

module Trace : sig ... end
type record = {
  1. time : float option;
  2. trace : Trace.t option;
  3. thread : Thread.t option;
  4. level : Level.t;
  5. log_message : string;
}
and t = record
type opt = {
  1. time : bool;
  2. trace : bool;
  3. thread : bool;
}

Some log information is optional, you can configure whether to record the corresponding information through this module

module type T = sig ... end
val record : opt:opt -> level:Level.t -> string -> t
module Builtin : sig ... end
OCaml

Innovation. Community. Security.