package devkit

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

Install

Dune Dependency

Authors

Maintainers

Sources

devkit-1.3.tbz
sha256=dae965685dceed47ad8e9844f12fe707dafdf2c3bdd46d0431d5b4d1e7754b23
sha512=b94ade804d751db87434042bbaa821fa8e82e233820a76806f910e2da040094b137e88a3579911a1626930912622b064c776ddbcb6991fb7111021ebf6553fdc

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.