mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
log: set syslog facility to LOG_DAEMON when run in server mode
This commit is contained in:
parent
4f4ee5b39d
commit
55a23a5b29
3 changed files with 17 additions and 5 deletions
4
log.h
4
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)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue