Tiny interface to Journald socket
Seeman sd_journal_send
, man systemd.journal-fields
See [/src/journal/journal-send.c#L206-L337]
abstract datatype: handle()
log_msg() = #{iodata() => iodata() | integer() | atom()}
log/2 | Logs a Key - Value message to journald socket
Keys have to be iodata()` and should not contain newlines or `= signs
Values can be iodata() , atom() or integer() and may contain any characters. |
open/1 | Opens journald log socket. |
log(KV::log_msg(), State::handle()) -> ok | {error, inet:posix()}
Logs a Key - Value message to journald socket
Keys have to be iodata()` and should not contain newlines or `=
signs
Values can be iodata()
, atom()
or integer()
and may contain any characters. utf8 is
preferrable
open(Opts::#{socket_path => file:filename_all()}) -> handle()
Opens journald log socket
Generated by EDoc