package ocaml-systemd

  1. Overview
  2. Docs
OCaml module for native access to the systemd facilities

Install

Dune Dependency

Authors

Maintainers

Sources

1.3.tar.gz
sha256=717acee7f71bc04ff3bb53c0af1231bd5c8112d4f2c1830562d5087cf1d4b152
sha512=9e69281cee9e26ee96bf33dc7624c6866021b2f227214c0e1376c101c77b245ab52c1a044c0b7be87d7a20beea81bb69fb33df450c7311b8fec3a608e650d7c2

doc/systemd/Journald/index.html

Module JournaldSource

Submit log entries to the system journal.

Sourcemodule Priority : sig ... end
Sourceval journal_send : (string * string) list -> unit

journal_send submits a list of KV pairs to the journal. The Key name must be in uppercase and consist only of characters, numbers and underscores, and may not begin with an underscore.

Sourceval journal_send_loc : (string * string) list -> unit

journal_send_loc acts like journal_send, but also adds the CODE_LINE and CODE_FILE location keys and values to the journal.

Compilation units must be compiled and linked with option -g

Sourceval journal_send_message : Priority.t -> string -> unit

journal_send_message p s is used to submit simple, plain text log entries to the system journal. The first argument is the Priority p. This is followed by the message s

Sourceval journal_send_message_loc : Priority.t -> string -> unit

journal_send_message_loc acts like journal_send_message, but also adds the CODE_LINE and CODE_FILE location keys and values to the journal.

Compilation units must be compiled and linked with option -g

OCaml

Innovation. Community. Security.