Extend .conf syntax for 'log' option, issue #21

This is the first patch in a series to add support for

    log:/path/to/logfile,priority:facility.level,tag:ident

In this patch support for 'priority:' and 'tag:', log file support
coming later.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2018-01-15 07:44:33 +01:00
1 parent 44591c6e51
commit cbd4cc8d34
2 files changed
+50 -14

No files matched your search

+6 -1
View File
@@ -111,7 +111,12 @@ typedef struct svc {
int stdin_fd;
/* Set for services we need to redirect stdout/stderr to syslog */
int log;
struct {
int enabled;
char file[64];
char prio[20];
char ident[20];
} log;
/* Identity */
char username[MAX_USER_LEN];