From 6bf3c61c57f1ba439b2124fb89229395a77f8f46 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 20 Nov 2018 11:18:22 +0100 Subject: log: introduce new helper call log_setup_service() Let's reduce the common boilerplate and have a single setup function used by all service code to setup logging. --- src/basic/log.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/basic/log.h') diff --git a/src/basic/log.h b/src/basic/log.h index e1f5fd30cd..683f97b942 100644 --- a/src/basic/log.h +++ b/src/basic/log.h @@ -318,3 +318,5 @@ int log_syntax_invalid_utf8_internal( }) #define DEBUG_LOGGING _unlikely_(log_get_max_level() >= LOG_DEBUG) + +void log_setup_service(void); -- cgit v1.2.1