package ocaml-systemd
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=afd43edb570b07827e9d3edc8509019917993d893446e37891dd917bfde85b3b
md5=f9206f1284addca555934100b1e68928
doc/systemd/Journald/index.html
Module Journald
Submit log entries to the system journal.
module Priority : sig ... end
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.
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