mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
One option to implement openlog and syslog functionality in Windows is to use windows event logger. But it looks like it involves changing registry settings and in general looks complicated. For the time being, do nothing for syslog. All the information needed for debugging will be present through the 'file' option anyways. We can start OVS daemons on Windows with "-vfile:info -vsyslog:off". Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
52 lines
1.9 KiB
C
52 lines
1.9 KiB
C
/*
|
|
* Copyright 2013 Cloudbase Solutions Srl
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
* not use this file except in compliance with the License.You may obtain
|
|
* a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the
|
|
* License for the specific language governing permissions and limitations
|
|
* under the License.
|
|
*/
|
|
|
|
#ifndef SYSLOG_H
|
|
#define SYSLOG_H 1
|
|
|
|
#define LOG_EMERG 0 /* system is unusable */
|
|
#define LOG_ALERT 1 /* action must be taken immediately */
|
|
#define LOG_CRIT 2 /* critical conditions */
|
|
#define LOG_ERR 3 /* error conditions */
|
|
#define LOG_WARNING 4 /* warning conditions */
|
|
#define LOG_NOTICE 5 /* normal but significant condition */
|
|
#define LOG_INFO 6 /* informational */
|
|
#define LOG_DEBUG 7 /* debug-level messages */
|
|
#define LOG_NDELAY 8 /* don't delay open */
|
|
#define LOG_DAEMON 24 /* system daemons */
|
|
|
|
#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 */
|
|
#define LOG_LOCAL3 (19<<3) /* reserved for local use */
|
|
#define LOG_LOCAL4 (20<<3) /* reserved for local use */
|
|
#define LOG_LOCAL5 (21<<3) /* reserved for local use */
|
|
#define LOG_LOCAL6 (22<<3) /* reserved for local use */
|
|
#define LOG_LOCAL7 (23<<3) /* reserved for local use */
|
|
|
|
static inline void
|
|
openlog(const char *ident OVS_UNUSED, int option OVS_UNUSED,
|
|
int facility OVS_UNUSED)
|
|
{
|
|
}
|
|
|
|
static inline void
|
|
syslog(int priority OVS_UNUSED, const char *format OVS_UNUSED, ...)
|
|
{
|
|
}
|
|
|
|
#endif /* syslog.h */
|