aboutsummaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
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)));