-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[logging] Introduced log modules and categories selection (#24189)
* [logging] Introduced log modules and categories selection Currently it is possible to disable some part of logs based on their level, but not on their origin module (region). After introducing specific log modules selection it would be convenient to make controlling those modules log categories possible as well. Summary of changes: * Added definitions for every existing log module that are by default set to 1, but can be ovewritten to 0. * Introduced IsModuleCategoryEnabled macro that returns category state (0/1) for specific log module. * To avoid creating dozens of new definitions for every module-category combination, IsModuleCategoryEnabled macro by default returns corresponding global category value (CHIP_DETAIL/PROGRESS/ERROR/AUTOMATION_LOGGING). If any category value was defined for specific module, it is used instead of global one. * Added filtering based on the mentioned definitions, so ChipInternalLog and ChipInternalLogByteSpan has definitions provided only if corresponding origin module is enabled and the specific category for this module is enabled. nRFConnect: * Disabled some modules for nrfconnect platform that saved ~11,8k of flash. * Switched from using kconfig value to filer out logs levels to relying on Matter logging layer filtering in Zephyr logging implementation. * Fixed logs for Darwin platform * Fixed Ameba platform
- Loading branch information
1 parent
b987f4d
commit 2371241
Showing
16 changed files
with
323 additions
and
30 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
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
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
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
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
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
Oops, something went wrong.