aboutsummaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-20 18:43:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-20 18:43:31 +0000
commit55a23a5b290140816a7f7c215ef90c8af1cb82ef (patch)
treea72735324af8eadb10f78b7cf7e3f79f457ae282 /log.h
parentmain: mention why we initialize a font set (diff)
log: set syslog facility to LOG_DAEMON when run in server mode
Diffstat (limited to 'log.h')
-rw-r--r--log.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/log.h b/log.h
index ba32d037..f0da5158 100644
--- a/log.h
+++ b/log.h
@@ -1,7 +1,11 @@
#pragma once
+enum log_facility { LOG_FACILITY_USER, LOG_FACILITY_DAEMON };
enum log_class { LOG_CLASS_ERROR, LOG_CLASS_WARNING, LOG_CLASS_INFO, LOG_CLASS_DEBUG };
+void log_init(enum log_facility syslog_facility);
+void log_deinit(void);
+
void log_msg(enum log_class log_class, const char *module,
const char *file, int lineno,
const char *fmt, ...) __attribute__((format (printf, 5, 6)));