forked from Koenkk/zigbee2mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow hierarchical filtering of logger namespaces (Koenkk#22859)
* POC: Allow hierarchical filtering of logger namespaces matches the closes defined namespace log level: advanced: log_namespaced_levels: 'zh:zstack:unpi': info would also apply to zh:zstack:unpi:write and zh:zstack:unpi:parse To limit runtime penalty uses the namespacedLevels as a lazy cache * Move namespace levels to separate cache Avoid poluting the namespacedLevel in the config / UI Add cache reset on config time log level change * Actually use the cache * Optimize/Cleanup * Add some namespace hierarchy filter tests * More coverage. * Fix Koenkk#22935 --------- Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
104 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters