logging: support an "OFF" logging level
authorThomas Haller <thaller@redhat.com>
Sat, 1 Aug 2015 12:12:34 +0000 (14:12 +0200)
committerThomas Haller <thaller@redhat.com>
Tue, 4 Aug 2015 09:21:57 +0000 (11:21 +0200)
commit8c3f1812ead7fc5078cc1742643906fbf965bccd
treed9ce0c72de8815904ed704837ac4795f2278ddcf
parent655b85bfea2c8e4594c6da304c844da64c0faa4d
logging: support an "OFF" logging level

The only way to disable logging for a domain entirely is to
omit the domain from the "domains" list. For example:

  "level=INFO, domains=PLATFORM,..."

Now add an explicit level "OFF" to facilitate configuration like:

  "level=INFO, domains=ALL,WIFI_SCAN:OFF"

It also supports
  "level=OFF, domains=PLATFORM:INFO"
but this is for the most part equivalent to
  "level=INFO, domains=PLATFORM"
clients/cli/nmcli-completion
man/NetworkManager.conf.xml.in
src/nm-logging.c
src/nm-logging.h