]> git.proxmox.com Git - mirror_ovs.git/blame - lib/vlog.man
netdev-offload-tc: Use single 'once' variable for probing tc features
[mirror_ovs.git] / lib / vlog.man
CommitLineData
2a3e30b2
BP
1.IP "\fB\-v\fR[\fIspec\fR]
2.IQ "\fB\-\-verbose=\fR[\fIspec\fR]
a9b4a41a 3.
2a3e30b2 4Sets logging levels. Without any \fIspec\fR, sets the log level for
d5460484 5every module and destination to \fBdbg\fR. Otherwise, \fIspec\fR is a
2a3e30b2
BP
6list of words separated by spaces or commas or colons, up to one from
7each category below:
a9b4a41a 8.
064af421
BP
9.RS
10.IP \(bu
2a3e30b2
BP
11A valid module name, as displayed by the \fBvlog/list\fR command on
12\fBovs\-appctl\fR(8), limits the log level change to the specified
13module.
a9b4a41a 14.
064af421 15.IP \(bu
2a3e30b2
BP
16\fBsyslog\fR, \fBconsole\fR, or \fBfile\fR, to limit the log level
17change to only to the system log, to the console, or to a file,
8b2ffff0
BP
18respectively. (If \fB\-\-detach\fR is specified, \fB\*(PN\fR closes
19its standard file descriptors, so logging to the console will have no
20effect.)
5a6af13f
GS
21.IP
22On Windows platform, \fBsyslog\fR is accepted as a word and is only
23useful along with the \fB\-\-syslog\-target\fR option (the word has no
24effect otherwise).
a9b4a41a 25.
a5ed8fe3 26.IP \(bu
2a3e30b2
BP
27\fBoff\fR, \fBemer\fR, \fBerr\fR, \fBwarn\fR, \fBinfo\fR, or
28\fBdbg\fR, to control the log level. Messages of the given severity
29or higher will be logged, and messages of lower severity will be
30filtered out. \fBoff\fR filters out all messages. See
7d110e96 31\fBovs\-appctl\fR(8) for a definition of each log level.
064af421 32.RE
a9b4a41a 33.
2a3e30b2
BP
34.IP
35Case is not significant within \fIspec\fR.
36.IP
37Regardless of the log levels set for \fBfile\fR, logging to a file
38will not take place unless \fB\-\-log\-file\fR is also specified (see
39below).
40.IP
41For compatibility with older versions of OVS, \fBany\fR is accepted as
42a word but has no effect.
43.
91005f03
BP
44.IP "\fB\-v\fR"
45.IQ "\fB\-\-verbose\fR"
064af421 46Sets the maximum logging verbosity level, equivalent to
ea523221 47\fB\-\-verbose=dbg\fR.
a9b4a41a 48.
d5460484
GS
49.IP "\fB\-vPATTERN:\fIdestination\fB:\fIpattern\fR"
50.IQ "\fB\-\-verbose=PATTERN:\fIdestination\fB:\fIpattern\fR"
51Sets the log pattern for \fIdestination\fR to \fIpattern\fR. Refer to
3fbe1d30 52\fBovs\-appctl\fR(8) for a description of the valid syntax for \fIpattern\fR.
a9b4a41a 53.
d69d61c7
GS
54.IP "\fB\-vFACILITY:\fIfacility\fR"
55.IQ "\fB\-\-verbose=FACILITY:\fIfacility\fR"
56Sets the RFC5424 facility of the log message. \fIfacility\fR can be one of
57\fBkern\fR, \fBuser\fR, \fBmail\fR, \fBdaemon\fR, \fBauth\fR, \fBsyslog\fR,
58\fBlpr\fR, \fBnews\fR, \fBuucp\fR, \fBclock\fR, \fBftp\fR, \fBntp\fR,
59\fBaudit\fR, \fBalert\fR, \fBclock2\fR, \fBlocal0\fR, \fBlocal1\fR,
60\fBlocal2\fR, \fBlocal3\fR, \fBlocal4\fR, \fBlocal5\fR, \fBlocal6\fR or
61\fBlocal7\fR. If this option is not specified, \fBdaemon\fR is used as
62the default for the local system syslog and \fBlocal0\fR is used while sending
63a message to the target provided via the \fB\-\-syslog\-target\fR option.
64.
064af421 65.TP
4e312e69 66\fB\-\-log\-file\fR[\fB=\fIfile\fR]
064af421
BP
67Enables logging to a file. If \fIfile\fR is specified, then it is
68used as the exact name for the log file. The default log file name
69used if \fIfile\fR is omitted is \fB@LOGDIR@/\*(PN.log\fR.
afc9f547
HM
70.
71.IP "\fB\-\-syslog\-target=\fIhost\fB:\fIport\fR"
72Send syslog messages to UDP \fIport\fR on \fIhost\fR, in addition to
73the system syslog. The \fIhost\fR must be a numerical IP address, not
74a hostname.
fe089c0d
AA
75.
76.IP "\fB\-\-syslog\-method=\fImethod\fR"
77Specify \fImethod\fR how syslog messages should be sent to syslog daemon.
78Following forms are supported:
79.RS
80.IP \(bu
e11f0c25 81\fBlibc\fR, use libc \fBsyslog()\fR function.
fe089c0d
AA
82Downside of using this options is that libc adds fixed prefix to every
83message before it is actually sent to the syslog daemon over \fB/dev/log\fR
84UNIX domain socket.
85.IP \(bu
86\fBunix:\fIfile\fR\fR, use UNIX domain socket directly. It is possible to
87specify arbitrary message format with this option. However,
88\fBrsyslogd 8.9\fR and older versions use hard coded parser function anyway
89that limits UNIX domain socket use. If you want to use arbitrary message
90format with older \fBrsyslogd\fR versions, then use UDP socket to localhost
91IP address instead.
92.IP \(bu
93\fBudp:\fIip\fR:\fIport\fR\fR, use UDP socket. With this method it is
94possible to use arbitrary message format also with older \fBrsyslogd\fR.
95When sending syslog messages over UDP socket extra precaution needs to
96be taken into account, for example, syslog daemon needs to be configured
97to listen on the specified UDP port, accidental iptables rules could be
98interfering with local syslog traffic and there are some security
99considerations that apply to UDP sockets, but do not apply to UNIX domain
100sockets.
e11f0c25
BP
101.IP \(bu
102\fBnull\fR, discards all messages logged to syslog.
fe089c0d 103.RE
e11f0c25
BP
104.IP
105The default is taken from the \fBOVS_SYSLOG_METHOD\fR environment
106variable; if it is unset, the default is \fBlibc\fR.