package ocaml-systemd

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.1.tar.gz
sha256=9462f1ee3d78dfe7e4cd1e0a344a73efcbd35286921a12a31116929fea73f96e
md5=4179c7a16571a5495e92a5b36791aa12

doc/systemd/Journald/index.html

Module Journald

Submit log entries to the system journal.

module Priority : sig ... end
val 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.

val 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

val 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

val 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.