diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2015-01-26 08:04:25 -0800 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2015-01-28 08:32:37 -0800 |
commit | d69d61c7c17504dd59a851247d3fa1b7e88f55c1 (patch) | |
tree | 6072bfc0f77983b7dfa690b2960abd7f0a2e4201 /include/windows | |
parent | 1667bb34988358aaf1c92d0d21fad4b1c8698780 (diff) | |
download | openvswitch-d69d61c7c17504dd59a851247d3fa1b7e88f55c1.tar.gz |
vlog: Ability to override the default log facility.
When Open vSwitch is run in hundreds of hypervisors, it is
useful to collect log messages through log collectors. To
collect log messages like this, it is useful to log them
in a particular RFC5424 facility in the local system. The
log collectors can then be used to collect logs anytime
desired.
This commit provides a sysadmin the ability to specify the
facility through which the log messages are logged.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/windows')
-rw-r--r-- | include/windows/syslog.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/windows/syslog.h b/include/windows/syslog.h index 41267da1c..3925ed641 100644 --- a/include/windows/syslog.h +++ b/include/windows/syslog.h @@ -28,6 +28,19 @@ #define LOG_NDELAY 8 /* don't delay open */ #define LOG_DAEMON 24 /* system daemons */ +#define LOG_KERN (0<<3) /* kernel messages */ +#define LOG_USER (1<<3) /* user-level messages */ +#define LOG_MAIL (2<<3) /* mail system */ +#define LOG_DAEMON (3<<3) /* system daemons */ +#define LOG_AUTH (4<<3) /* security/authorization messages */ +#define LOG_SYSLOG (5<<3) /* messages generated internally by syslogd */ +#define LOG_LPR (6<<3) /* line printer subsystem */ +#define LOG_NEWS (7<<3) /* network news subsystem */ +#define LOG_UUCP (8<<3) /* UUCP subsystem */ +#define LOG_CRON (9<<3) /* clock daemon */ +#define LOG_AUTHPRIV (10<<3) /* security/authorization messages */ +#define LOG_FTP (11<<3) /* FTP daemon */ + #define LOG_LOCAL0 (16<<3) /* reserved for local use */ #define LOG_LOCAL1 (17<<3) /* reserved for local use */ #define LOG_LOCAL2 (18<<3) /* reserved for local use */ |