diff options
Diffstat (limited to 'src/mm-context.c')
-rw-r--r-- | src/mm-context.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mm-context.c b/src/mm-context.c index 0a896e6d..6b0dab79 100644 --- a/src/mm-context.c +++ b/src/mm-context.c @@ -89,6 +89,7 @@ mm_context_get_no_auto_scan (void) static const gchar *log_level; static const gchar *log_file; +static gboolean log_journal; static gboolean log_show_ts; static gboolean log_rel_ts; @@ -103,6 +104,13 @@ static const GOptionEntry log_entries[] = { "Path to log file", "[PATH]" }, +#if WITH_SYSTEMD_JOURNAL + { + "log-journal", 0, 0, G_OPTION_ARG_NONE, &log_journal, + "Log to systemd journal", + NULL + }, +#endif { "log-timestamps", 0, 0, G_OPTION_ARG_NONE, &log_show_ts, "Show timestamps in log output", @@ -143,6 +151,12 @@ mm_context_get_log_file (void) } gboolean +mm_context_get_log_journal (void) +{ + return log_journal; +} + +gboolean mm_context_get_log_timestamps (void) { return log_show_ts; |