]> git.proxmox.com Git - mirror_ovs.git/commitdiff
syslog: Provide stub functions for openlog and syslog.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 6 Jan 2014 21:54:21 +0000 (13:54 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 24 Jan 2014 15:59:02 +0000 (07:59 -0800)
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>
include/windows/syslog.h
lib/vlog-unixctl.man
lib/vlog.man
utilities/ovs-appctl.8.in

index 4a2f38b6e78e3e156047d14b00c9151aab8c7db8..41267da1c941a62182cecb669b8a78bb3d977789 100644 (file)
 #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 */
index 4ead3e21c984c7b0de373ec46ab1cb6f581986c2..1890dc2fcf0494a4f2680ccbebaad5b246cc1e1a 100644 (file)
@@ -21,6 +21,10 @@ module.
 \fBsyslog\fR, \fBconsole\fR, or \fBfile\fR, to limit the log level
 change to only to the system log, to the console, or to a file,
 respectively.
+.IP
+On Windows platform, \fBsyslog\fR is accepted as a word and is only
+useful along with the \fB\-\-syslog\-target\fR option (the word has no
+effect otherwise).
 .
 .IP \(bu 
 \fBoff\fR, \fBemer\fR, \fBerr\fR, \fBwarn\fR, \fBinfo\fR, or
index f675a4b3e75214e021f7f589116a8a50cda5d17f..2ccef7ffe5d2d90165a1e69f439dc591f5d92d64 100644 (file)
@@ -21,6 +21,10 @@ module.
 \fBsyslog\fR, \fBconsole\fR, or \fBfile\fR, to limit the log level
 change to only to the system log, to the console, or to a file,
 respectively.
+.IP
+On Windows platform, \fBsyslog\fR is accepted as a word and is only
+useful along with the \fB\-\-syslog\-target\fR option (the word has no
+effect otherwise).
 .
 .IP \(bu 
 \fBoff\fR, \fBemer\fR, \fBerr\fR, \fBwarn\fR, \fBinfo\fR, or
index e381b2b4ddfb942b682f6d26bcb6b78118cd9fe7..cfb74ebfb93c757dbbf22435057483fb87d120b1 100644 (file)
@@ -119,6 +119,10 @@ module.
 \fBsyslog\fR, \fBconsole\fR, or \fBfile\fR, to limit the log level
 change to only to the system log, to the console, or to a file,
 respectively.
+.IP
+On Windows platform, \fBsyslog\fR is accepted as a word and
+is only useful if the \fItarget\fR was started with the
+\fB\-\-syslog\-target\fR option (the word has no effect otherwise).
 .
 .IP \(bu 
 \fBoff\fR, \fBemer\fR, \fBerr\fR, \fBwarn\fR, \fBinfo\fR, or