diff options
author | Omar Polo <op@omarpolo.com> | 2023-08-07 09:34:19 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-08-07 09:34:19 +0000 |
commit | 9abba172b6f9ff373dd1e45d7b9587d3bdd0afcf (patch) | |
tree | aa8a290791923b5de38b226bf4d942d0081d670f /config.c | |
parent | 3a93c90445bc762cbef00d130feffd9a7f6b083f (diff) |
add `log syslog facility' to use a different syslog(3) facility
Was requested ages ago by Karl Jeacle, now that there is some better
support for configuring the logging there's no excuse to add this.
It helps with filtering from syslog.d / syslog.conf.
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -21,6 +21,7 @@ #include <fcntl.h> #include <limits.h> #include <string.h> +#include <syslog.h> #include <openssl/pem.h> @@ -45,6 +46,7 @@ config_new(void) conf->prefork = 3; conf->log_syslog = 1; + conf->log_facility = LOG_DAEMON; conf->log_format = LOG_FORMAT_LEGACY; #ifdef __OpenBSD__ @@ -152,6 +154,7 @@ config_purge(struct conf *conf) conf->use_privsep_crypto = use_privsep_crypto; conf->protos = TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3; conf->log_syslog = 1; + conf->log_facility = LOG_DAEMON; conf->log_format = log_format; init_mime(&conf->mime); TAILQ_INIT(&conf->fcgi); |