|
@@ -16,31 +16,31 @@ static struct {
|
|
const char *name;
|
|
const char *name;
|
|
int facility;
|
|
int facility;
|
|
} log_names[] = {
|
|
} log_names[] = {
|
|
- { "local0", LOG_LOCAL0 },
|
|
|
|
- { "local1", LOG_LOCAL1 },
|
|
|
|
- { "local2", LOG_LOCAL2 },
|
|
|
|
- { "local3", LOG_LOCAL3 },
|
|
|
|
- { "local4", LOG_LOCAL4 },
|
|
|
|
- { "local5", LOG_LOCAL5 },
|
|
|
|
- { "local6", LOG_LOCAL6 },
|
|
|
|
- { "local7", LOG_LOCAL7 },
|
|
|
|
- { "auth", LOG_AUTH },
|
|
|
|
|
|
+ { "local0", LOG_LOCAL0 },
|
|
|
|
+ { "local1", LOG_LOCAL1 },
|
|
|
|
+ { "local2", LOG_LOCAL2 },
|
|
|
|
+ { "local3", LOG_LOCAL3 },
|
|
|
|
+ { "local4", LOG_LOCAL4 },
|
|
|
|
+ { "local5", LOG_LOCAL5 },
|
|
|
|
+ { "local6", LOG_LOCAL6 },
|
|
|
|
+ { "local7", LOG_LOCAL7 },
|
|
|
|
+ { "auth", LOG_AUTH },
|
|
#ifdef LOG_AUTHPRIV
|
|
#ifdef LOG_AUTHPRIV
|
|
- { "authpriv", LOG_AUTHPRIV },
|
|
|
|
|
|
+ { "authpriv", LOG_AUTHPRIV },
|
|
#endif
|
|
#endif
|
|
- { "cron", LOG_CRON },
|
|
|
|
- { "daemon", LOG_DAEMON },
|
|
|
|
|
|
+ { "cron", LOG_CRON },
|
|
|
|
+ { "daemon", LOG_DAEMON },
|
|
#ifdef LOG_FTP
|
|
#ifdef LOG_FTP
|
|
- { "ftp", LOG_FTP },
|
|
|
|
|
|
+ { "ftp", LOG_FTP },
|
|
#endif
|
|
#endif
|
|
- { "kern", LOG_KERN },
|
|
|
|
- { "lpr", LOG_LPR },
|
|
|
|
- { "mail", LOG_MAIL },
|
|
|
|
- { "news", LOG_NEWS },
|
|
|
|
- { "syslog", LOG_SYSLOG },
|
|
|
|
- { "user", LOG_USER },
|
|
|
|
- { "uucp", LOG_UUCP },
|
|
|
|
- { NULL, 0 }, // end of list
|
|
|
|
|
|
+ { "kern", LOG_KERN },
|
|
|
|
+ { "lpr", LOG_LPR },
|
|
|
|
+ { "mail", LOG_MAIL },
|
|
|
|
+ { "news", LOG_NEWS },
|
|
|
|
+ { "syslog", LOG_SYSLOG },
|
|
|
|
+ { "user", LOG_USER },
|
|
|
|
+ { "uucp", LOG_UUCP },
|
|
|
|
+ { NULL, 0 }, // end of list
|
|
};
|
|
};
|
|
|
|
|
|
/** @brief Parses syslog facility string and returns the facility id.
|
|
/** @brief Parses syslog facility string and returns the facility id.
|