diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-20 18:43:31 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-20 18:43:31 +0000 |
| commit | 55a23a5b290140816a7f7c215ef90c8af1cb82ef (patch) | |
| tree | a72735324af8eadb10f78b7cf7e3f79f457ae282 /log.h | |
| parent | main: 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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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))); |
