logging: support an "OFF" logging level

System Internals / NetworkManager - Thomas Haller [redhat.com] - 4 August 2015 04:21 UTC

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"

8c3f181 logging: support an "OFF" logging level
clients/cli/nmcli-completion | 2 +-
man/NetworkManager.conf.xml.in | 4 ++--
src/nm-logging.c | 13 ++++++++-----
src/nm-logging.h | 6 +++++-
4 files changed, 16 insertions(+), 9 deletions(-)

Upstream: cgit.freedesktop.org


  • Share