diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-11-27 11:42:33 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-11-27 11:42:33 +0000 |
commit | a63733a27752be4e12fb612a5b3f79f8a44b2339 (patch) | |
tree | 74057ad892ebfc8436d70df73c8ea548aabce2dc /msg.c | |
parent | f512ce10ab3067de0518dfaa39492e0321712f5a (diff) | |
download | rsyslog-a63733a27752be4e12fb612a5b3f79f8a44b2339.tar.gz rsyslog-a63733a27752be4e12fb612a5b3f79f8a44b2339.tar.xz rsyslog-a63733a27752be4e12fb612a5b3f79f8a44b2339.zip |
moved syslog PRI code tables to msg.c as this is the only place where they
are still needed
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 44 |
1 files changed, 44 insertions, 0 deletions
@@ -40,6 +40,50 @@ #include "template.h" #include "msg.h" +static syslogCODE rs_prioritynames[] = + { + { "alert", LOG_ALERT }, + { "crit", LOG_CRIT }, + { "debug", LOG_DEBUG }, + { "emerg", LOG_EMERG }, + { "err", LOG_ERR }, + { "error", LOG_ERR }, /* DEPRECATED */ + { "info", LOG_INFO }, + { "none", INTERNAL_NOPRI }, /* INTERNAL */ + { "notice", LOG_NOTICE }, + { "panic", LOG_EMERG }, /* DEPRECATED */ + { "warn", LOG_WARNING }, /* DEPRECATED */ + { "warning", LOG_WARNING }, + { NULL, -1 } + }; + +static syslogCODE rs_facilitynames[] = + { + { "auth", LOG_AUTH }, + { "authpriv", LOG_AUTHPRIV }, + { "cron", LOG_CRON }, + { "daemon", LOG_DAEMON }, + { "ftp", LOG_FTP }, + { "kern", LOG_KERN }, + { "lpr", LOG_LPR }, + { "mail", LOG_MAIL }, + { "mark", INTERNAL_MARK }, /* INTERNAL */ + { "news", LOG_NEWS }, + { "security", LOG_AUTH }, /* DEPRECATED */ + { "syslog", LOG_SYSLOG }, + { "user", LOG_USER }, + { "uucp", LOG_UUCP }, + { "local0", LOG_LOCAL0 }, + { "local1", LOG_LOCAL1 }, + { "local2", LOG_LOCAL2 }, + { "local3", LOG_LOCAL3 }, + { "local4", LOG_LOCAL4 }, + { "local5", LOG_LOCAL5 }, + { "local6", LOG_LOCAL6 }, + { "local7", LOG_LOCAL7 }, + { NULL, -1 } + }; + /* The following functions will support advanced output module * multithreading, once this is implemented. Currently, we * include them as hooks only. The idea is that we need to guard |