%docentities; ]> &adminguide;
Overview It provides logging to systemd journal from the moment of loading this module.
Dependencies
&kamailio; Modules The following modules must be loaded before this module: none.
External Libraries or Applications The following libraries or applications must be installed before running &kamailio; with this module loaded: libsystemd
Core Logging This module can replace the syslog logging with sending the log messages to systemd journal. The logging to systemd is started when this module is loaded, before that the default syslog system is used. It requires that core parameters log_engine_type to be set to 'systemd'. It is not enabled if log_stderror=yes. <function>Core Logging Replacement with Systemd</function> ... log_engine_type="systemd" ... loadmodule "log_systemd.so" ...
Functions
<function moreinfo="none">sd_journal_print(level, text)</function> Print the text in the systemd journal at the provided level parameter. Both parameters can contain variables. For more, see the manual page for function sd_journal_print() in C library libsystemd. This function can be used from ANY_ROUTE. <function>sd_journal_print</function> usage ... sd_journal_print("LOG_INFO", "R-URI is $ru\n"); ...