From fd0bed1df9e306d8f0d2498afb8df316ca8b3f9e Mon Sep 17 00:00:00 2001 From: Torsten Hilbrich Date: Wed, 21 Jun 2017 12:59:35 +0200 Subject: log: Add support for journal logging This logging is available if the software was build with the configure option --with-systemd-journal. It will be enabled by default if libsystemd is found. The runtime parameter --log-journal enables to output of log messages to the systemd journal. Please note that the journal priority field has the same value as the syslog level so no conversion is required here. --- src/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index c133abc9..b61cabd9 100644 --- a/src/main.c +++ b/src/main.c @@ -141,6 +141,7 @@ main (int argc, char *argv[]) if (!mm_log_setup (mm_context_get_log_level (), mm_context_get_log_file (), + mm_context_get_log_journal (), mm_context_get_log_timestamps (), mm_context_get_log_relative_timestamps (), &err)) { -- cgit v1.2.3-70-g09d2