package devkit

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

Install

Dune Dependency

Authors

Maintainers

Sources

devkit-1.20210517.tbz
md5=00995ebead339d6ec1ba7859c3fc3a58
sha256=5ad39c7fa1a966a2f0a7f6dbb7e82c787439c73482f5f44b3c9fb54b040d36eb
sha512=8dd3f7d4aaabae9aa9ede13edee2b22214c0d2e2780bb08b2ca8ed588d74fc6d9b1908bb31dfee49c949c7cc425fb98897b8e0f11280070ebd99b965908ea133

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.