summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-07-28 10:19:43 -0700
committerJustin Pettit <jpettit@nicira.com>2011-08-01 13:25:23 -0700
commit7d110e960278c0b1f5c39e398a3aab9d02e84c00 (patch)
tree73173e715df0d2d688ab0574755e5f6d3e850d04
parentc1a543a8d6d2847983b6b0defd1e19777da85715 (diff)
downloadopenvswitch-7d110e960278c0b1f5c39e398a3aab9d02e84c00.tar.gz
vlog: Move log level definitions from source code to user documentation.
Users should be able to find out what a log level means without reading source code comments, so this seems like a better place for it. Reported-by: David Tsai <dtsai@nicira.com>
-rw-r--r--lib/vlog.h21
-rw-r--r--lib/vlog.man3
-rw-r--r--utilities/ovs-appctl.8.in31
3 files changed, 33 insertions, 22 deletions
diff --git a/lib/vlog.h b/lib/vlog.h
index aa98c06ea..6fa007b27 100644
--- a/lib/vlog.h
+++ b/lib/vlog.h
@@ -30,26 +30,7 @@ extern "C" {
/* Logging severity levels.
*
- * A logging severity level of OFF suppresses logging. Messages at the
- * following log levels, in descending order of importance, are enabled by
- * default:
- *
- * - EMER: The process is aborting due to unrecoverable failure.
- *
- * - ERR: A high-level operation or a subsystem failed. Attention is
- * warranted.
- *
- * - WARN: A low-level operation failed, but higher-level subsystems may be
- * able to recover.
- *
- * - INFO: Information that may be useful in retrospect when investigating
- * a problem.
- *
- * The lowest log level is not enabled by default:
- *
- * - DBG: Information useful only to someone with intricate knowledge of the
- * system, or that would commonly cause too-voluminous log output.
- */
+ * ovs-appctl(8) defines each of the log levels. */
#define VLOG_LEVELS \
VLOG_LEVEL(OFF, LOG_ALERT) \
VLOG_LEVEL(EMER, LOG_ALERT) \
diff --git a/lib/vlog.man b/lib/vlog.man
index 63e712ea4..0fff86016 100644
--- a/lib/vlog.man
+++ b/lib/vlog.man
@@ -24,7 +24,8 @@ below).
\fIlevel\fR must be one of \fBoff\fR, \fBemer\fR, \fBerr\fR, \fBwarn\fR,
\fBinfo\fR, or
\fBdbg\fR, designating the minimum severity of a message for it to be
-logged. If it is omitted, \fIlevel\fR defaults to \fBdbg\fR.
+logged. If it is omitted, \fIlevel\fR defaults to \fBdbg\fR. See
+\fBovs\-appctl\fR(8) for a definition of each log level.
.RE
.
.TP
diff --git a/utilities/ovs-appctl.8.in b/utilities/ovs-appctl.8.in
index a3688ac55..51085980b 100644
--- a/utilities/ovs-appctl.8.in
+++ b/utilities/ovs-appctl.8.in
@@ -55,9 +55,38 @@ as if it had been specified directly as the target.
The default target is \fBovs\-vswitchd\fR.
.
.SH LOGGING COMMANDS
+.
+.PP
+Open vSwitch has several log levels. The highest-severity log level
+is:
+.
+.IP "\fBOFF\fR"
+No message is ever logged at this level, so setting a logging
+facility's log level to \fBOFF\fR disables logging to that facility.
+.
+.PP
+The following log levels, in order of descending severity, are enabled
+by default:
+.
+.IP "\fBEMER\f"
+A major failure forced a process to abort.
+.IP "\fBERR\fR"
+A high-level operation or a subsystem failed. Attention is
+warranted.
+.IP "\fBWARN\fR"
+A low-level operation failed, but higher-level subsystems may be able
+to recover.
+.IP "\fBINFO\fR"
+Information that may be useful in retrospect when investigating
+a problem.
+.IP "\fBDBG\fR"
+Information useful only to someone with intricate knowledge of the
+system, or that would commonly cause too-voluminous log output. Log
+messages at this level are not logged by default.
+.
+.PP
Every Open vSwitch daemon supports the following commands for
examining and adjusting log levels.
-.
.IP "\fBvlog/list\fR"
Lists the known logging modules and their current levels.
.