logging: add special logging level "KEEP"
authorThomas Haller <thaller@redhat.com>
Wed, 7 Oct 2015 08:45:28 +0000 (10:45 +0200)
committerThomas Haller <thaller@redhat.com>
Fri, 9 Oct 2015 12:55:00 +0000 (14:55 +0200)
commitfd87ce503c7927ba552b381b5c2d4b32fccb48dd
treee2a3390bf6034b5c01d26c84a8c42b7334a5205e
parentcc6b07c43974bc83b2bc17dce5bbe5934149fb58
logging: add special logging level "KEEP"

Without this, the user cannot configure only certain logging domains
without touching them all.

E.g.

  # nmcli general logging level DEBUG domains PLATFORM

will disable all non-PLATFORM domains.
Well, the user can do:

  # nmcli general logging level INFO domains PLATFORM:DEBUG
  # nmcli general logging level DEBUG domains ALL:INFO,PLATFORM

but in this case all non-PLATFORM domains are reset explicitly.

Now the user can:

  # nmcli general logging level KEEP domains PLATFORM:DEBUG
  # nmcli general logging level DEBUG domains ALL:KEEP,PLATFORM

which will only change the platform domain.
introspection/nm-manager.xml
src/nm-logging.c
src/nm-logging.h