From 2822296ddb22389c5b4e9b8fb6ef7c906ff99314 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 18 Feb 2011 20:37:04 +0100 Subject: LOGGING: configure logging from the vty We can now configure logging to (multiple) files, stderr and syslog from the vty command line in a persistent way (config file) --- src/logging_syslog.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/logging_syslog.c') diff --git a/src/logging_syslog.c b/src/logging_syslog.c index b65e8196..b558fc0b 100644 --- a/src/logging_syslog.c +++ b/src/logging_syslog.c @@ -21,6 +21,8 @@ #include "../config.h" +#ifdef HAVE_SYSLOG_H + #include #include #include @@ -64,9 +66,13 @@ struct log_target *log_target_create_syslog(const char *ident, int option, if (!target) return NULL; + target->tgt_syslog.facility = facility; + target->type = LOG_TGT_TYPE_SYSLOG; target->output = _syslog_output; openlog(ident, option, facility); return target; } + +#endif /* HAVE_SYSLOG_H */ -- cgit v1.2.3