package devkit

  1. Overview
  2. Docs
Development kit - general purpose library

Install

Dune Dependency

Authors

Maintainers

Sources

devkit-1.20240429.tbz
sha256=222f8ac131b1d970dab7eeb2714bfd6b9338b88b1082e6e01c136ae19e7eaef4
sha512=c9e6d93e3d21e5530c0f4d5baca51bf1f0a5d19248f8af7678d0665bb5cdf295d7aaaaa3e50eb2e44b8720e55097cc675af4dc8ec45acf9da39feb3eae1405d5

doc/devkit.core/Devkit_core/Logstash/index.html

Module Devkit_core.LogstashSource

Sourcetype json = [
  1. | `Float of float
  2. | `Int of int
  3. | `String of string
]
Sourceval get : unit -> [> `Assoc of (string * [> json ]) list ] list

Export counters registered with Var as logstash events

Sourceval setup : ?pause:Time.t -> Libevent.event_base -> unit

Setup periodic saving of counters as logstash json rows along the logfile

Sourceval setup_lwt : ?pause:Time.t -> unit -> unit
Sourcetype logger = < event : (string * Yojson.Safe.t) list -> unit ; write : unit -> unit ; reload : unit -> unit ; flush : unit -> unit >
Sourceval log : ?autoflush:float -> ?verbose:bool -> ?add_timestamp_only:bool -> ?name:string -> unit -> logger
Sourceval setup_error_log : unit -> unit
Sourcemodule Dyn : sig ... end

Counters with arbitrary attributes

Sourceval lifetime : ?extra:string -> events:logger -> version:string -> unit -> unit

Log events related to the life of the program:

  • start
  • signal.stop
  • exit
OCaml

Innovation. Community. Security.