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