logging: rework a bit, maybe support syslog

Seems journal logging fails on NetBSD (no surprise), but has some
unwanted/not-fully-understood side-effects.

In any case, outside Linux there's no use in even trying to use
journald; so we don't do that anymore.

Add conditional support for syslog (requires glib 2.80).
This commit is contained in:
Dirk-Jan C. Binnema
2024-05-07 19:26:10 +03:00
parent b36e492d29
commit 23941735df
3 changed files with 48 additions and 12 deletions

View File

@ -50,7 +50,7 @@ test('test-logger',
executable('test-logger', '../mu-logger.cc',
install: false,
cpp_args: ['-DBUILD_TESTS'],
dependencies: [glib_dep, lib_mu_utils_dep, thread_dep ]))
dependencies: [glib_dep, lib_mu_utils_dep,config_h_dep,thread_dep ]))
test('test-option',
executable('test-option', '../mu-option.cc',