diff options
author | Thomas Haller <thaller@redhat.com> | 2019-01-16 16:16:49 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-02-05 08:18:08 +0100 |
commit | 729feb0a93613851c7792e219fed9c62d994ed2b (patch) | |
tree | 0986d1b9c802d78c0d7f3a27c1439e9ebafa6fa2 /src/nm-logging.h | |
parent | 83338428d920feba8d014289818d434b834b6c72 (diff) | |
download | NetworkManager-729feb0a93613851c7792e219fed9c62d994ed2b.tar.gz |
logging: refactor and merge early logging initialization
Instead of having two functions nm_logging_set_syslog_identifier()
and nm_logging_set_prefix(), merge them.
They must both be called at earliest point and together. No point
in giving them the appearance that they could be called any time.
Diffstat (limited to 'src/nm-logging.h')
-rw-r--r-- | src/nm-logging.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nm-logging.h b/src/nm-logging.h index 85fabd199f..e7b307c23e 100644 --- a/src/nm-logging.h +++ b/src/nm-logging.h @@ -157,10 +157,11 @@ gboolean nm_logging_setup (const char *level, char **bad_domains, GError **error); -void nm_logging_set_syslog_identifier (const char *domain); -void nm_logging_set_prefix (const char *format, ...) _nm_printf (1, 2); +void nm_logging_init_pre (const char *syslog_identifier, + char *prefix_take); + +void nm_logging_init (const char *logging_backend, gboolean debug); -void nm_logging_syslog_openlog (const char *logging_backend, gboolean debug); gboolean nm_logging_syslog_enabled (void); /*****************************************************************************/ |