sony / nmos-cpp

An NMOS (Networked Media Open Specifications) Registry and Node in C++ (IS-04, IS-05)
Apache License 2.0
141 stars 80 forks source link

[Enhancement] Negative logging categories #338

Open garethsb opened 1 year ago

garethsb commented 1 year ago

We could add support to the default/example logging gateway so that categories that should not be logged can be specified in the config.json, e.g. with a simple prefix like "!access". This would prevent logging of messages with this category even if other categories match positively.

https://github.com/sony/nmos-cpp/blob/14fd314890a85fdf857acfc30821aeaf1bbb35db/Development/nmos/log_gate.h#L57