X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fvlog-unixctl.man;h=1890dc2fcf0494a4f2680ccbebaad5b246cc1e1a;hb=28c5588e8e1a8d091c5d2275232c35f2968a97fa;hp=5c79875fc5e29d5320702df11f7ee97bb5506233;hpb=b16fdafe572f4d91b480c2c84758c643a41376af;p=sliver-openvswitch.git diff --git a/lib/vlog-unixctl.man b/lib/vlog-unixctl.man index 5c79875fc..1890dc2fc 100644 --- a/lib/vlog-unixctl.man +++ b/lib/vlog-unixctl.man @@ -1,32 +1,52 @@ +.de IQ +. br +. ns +. IP "\\$1" +.. .SS "VLOG COMMANDS" These commands manage \fB\*(PN\fR's logging settings. -.IP "\fBvlog/set\fR \fImodule\fR[\fB:\fIfacility\fR[\fB:\fIlevel\fR]]" -Sets the logging level for \fImodule\fR in \fIfacility\fR to -\fIlevel\fR: +.IP "\fBvlog/set\fR [\fIspec\fR]" +Sets logging levels. Without any \fIspec\fR, sets the log level for +every module and facility to \fBdbg\fR. Otherwise, \fIspec\fR is a +list of words separated by spaces or commas or colons, up to one from +each category below: . .RS .IP \(bu -\fImodule\fR may be any valid module name (as displayed by the -\fB--list\fR action on \fBovs-appctl\fR(8)), or the special name -\fBANY\fR to set the logging levels for all modules. +A valid module name, as displayed by the \fBvlog/list\fR command on +\fBovs\-appctl\fR(8), limits the log level change to the specified +module. . .IP \(bu -\fIfacility\fR may be \fBsyslog\fR, \fBconsole\fR, or \fBfile\fR to -set the levels for logging to the system log, the console, or a file -respectively, or \fBANY\fR to set the logging levels for both -facilities. If it is omitted, \fIfacility\fR defaults to \fBANY\fR. +\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 -The log level for the \fBfile\fR facility has no effect unless -\fB\*(PN\fR was invoked with the \fB--log-file\fR option. +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 -\fIlevel\fR must be one of \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. +\fBoff\fR, \fBemer\fR, \fBerr\fR, \fBwarn\fR, \fBinfo\fR, or +\fBdbg\fR, to control the log level. Messages of the given severity +or higher will be logged, and messages of lower severity will be +filtered out. \fBoff\fR filters out all messages. See +\fBovs\-appctl\fR(8) for a definition of each log level. +.RE +. +.IP +Case is not significant within \fIspec\fR. +.IP +Regardless of the log levels set for \fBfile\fR, logging to a file +will not take place unless \fB\*(PN\fR was invoked with the +\fB\-\-log\-file\fR option. +.IP +For compatibility with older versions of OVS, \fBany\fR is accepted as +a word but has no effect. .RE .IP "\fBvlog/set PATTERN:\fIfacility\fB:\fIpattern\fR" Sets the log pattern for \fIfacility\fR to \fIpattern\fR. Refer to -\fBovs-appctl\fR(8) for a description of the valid syntax for \fIpattern\fR. +\fBovs\-appctl\fR(8) for a description of the valid syntax for \fIpattern\fR. . .IP "\fBvlog/list\fR" Lists the supported logging modules and their current levels. @@ -36,4 +56,21 @@ Causes \fB\*(PN\fR to close and reopen its log file. (This is useful after rotating log files, to cause a new log file to be used.) .IP This has no effect unless \fB\*(PN\fR was invoked with the -\fB--log-file\fR option. +\fB\-\-log\-file\fR option. +. +.IP "\fBvlog/disable\-rate\-limit \fR[\fImodule\fR]..." +.IQ "\fBvlog/enable\-rate\-limit \fR[\fImodule\fR]..." +By default, \fB\*(PN\fR limits the rate at which certain messages can +be logged. When a message would appear more frequently than the +limit, it is suppressed. This saves disk space, makes logs easier to +read, and speeds up execution, but occasionally troubleshooting +requires more detail. Therefore, \fBvlog/disable\-rate\-limit\fR +allows rate limits to be disabled at the level of an individual log +module. Specify one or more module names, as displayed by the +\fBvlog/list\fR command. Specifying either no module names at all or +the keyword \fBany\fR disables rate limits for every log module. +. +.IP +The \fBvlog/enable\-rate\-limit\fR command, whose syntax is the same +as \fBvlog/disable\-rate\-limit\fR, can be used to re-enable a rate +limit that was previously disabled.