-v
[spec]
--verbose=
[spec]
Sets logging levels. Without any spec, sets the log level
for every module and destination to dbg
. Otherwise, spec is
a list of words separated by spaces or commas or colons, up
to one from each category below:
• A valid module name, as displayed by the vlog/list
command on ovs-appctl(8), limits the log level change
to the specified module.
• syslog
, console
, or file
, to limit the log level
change to only to the system log, to the console, or
to a file, respectively. (If --detach
is specified,
the daemon closes its standard file descriptors, so
logging to the console will have no effect.)
On Windows platform, syslog
is accepted as a word and
is only useful along with the --syslog-target
option
(the word has no effect otherwise).
• off
, emer
, err
, warn
, info
, or dbg
, to control the
log level. Messages of the given severity or higher
will be logged, and messages of lower severity will
be filtered out. off
filters out all messages. See
ovs-appctl(8) for a definition of each log level.
Case is not significant within spec.
Regardless of the log levels set for file
, logging to a file
will not take place unless --log-file
is also specified (see
below).
For compatibility with older versions of OVS, any
is
accepted as a word but has no effect.
-v
--verbose
Sets the maximum logging verbosity level, equivalent to
--verbose=dbg
.
-vPATTERN:
destination:
pattern
--verbose=PATTERN:
destination:
pattern
Sets the log pattern for destination to pattern. Refer to
ovs-appctl(8) for a description of the valid syntax for
pattern.
-vFACILITY:
facility
--verbose=FACILITY:
facility
Sets the RFC5424 facility of the log message. facility can
be one of kern
, user
, mail
, daemon
, auth
, syslog
, lpr
, news
,
uucp
, clock
, ftp
, ntp
, audit
, alert
, clock2
, local0
, local1
,
local2
, local3
, local4
, local5
, local6
or local7
. If this
option is not specified, daemon
is used as the default for
the local system syslog and local0
is used while sending a
message to the target provided via the --syslog-target
option.
--log-file
[=
file]
Enables logging to a file. If file is specified, then it is
used as the exact name for the log file. The default log
file name used if file is omitted is
/usr/local/var/log/openvswitch/
program.log
.
--syslog-target=
host:
port
Send syslog messages to UDP port on host, in addition to the
system syslog. The host must be a numerical IP address, not
a hostname.
--syslog-method=
method
Specify method as how syslog messages should be sent to
syslog daemon. The following forms are supported:
• libc
, to use the libc syslog()
function. Downside of
using this options is that libc adds fixed prefix to
every message before it is actually sent to the
syslog daemon over /dev/log
UNIX domain socket.
• unix:
file, to use a UNIX domain socket directly. It
is possible to specify arbitrary message format with
this option. However, rsyslogd 8.9
and older versions
use hard coded parser function anyway that limits
UNIX domain socket use. If you want to use arbitrary
message format with older rsyslogd
versions, then use
UDP socket to localhost IP address instead.
• udp:
ip:
port, to use a UDP socket. With this method it
is possible to use arbitrary message format also with
older rsyslogd
. When sending syslog messages over UDP
socket extra precaution needs to be taken into
account, for example, syslog daemon needs to be
configured to listen on the specified UDP port,
accidental iptables rules could be interfering with
local syslog traffic and there are some security
considerations that apply to UDP sockets, but do not
apply to UNIX domain sockets.
• null
, to discard all messages logged to syslog.
The default is taken from the OVS_SYSLOG_METHOD
environment
variable; if it is unset, the default is libc
.