zephyr/subsys/shell/modules
Jonathan Rico 76f74344a8 Shell: kernel: Add runtime log filtering command
Use `kernel log-level modulename severity`
Also enable it for the Bluetooth Shell.

Then one can compile-in a lot of BT modules like so:

CONFIG_BT_DEBUG_HCI_CORE=y
CONFIG_BT_DEBUG_L2CAP=y
CONFIG_BT_DEBUG_ATT=y
CONFIG_BT_DEBUG_GATT=y

And at runtime select only, e.g. GATT

kernel log-level bt_hci_core 0
kernel log-level bt_l2cap 0
kernel log-level bt_att 0

And then re-enable L2CAP if needed later

kernel log-level bt_l2cap 4

And so on..

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2022-07-12 12:24:43 +02:00
..
CMakeLists.txt
date_service.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
device_service.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
devmem_service.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
Kconfig kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
kernel_service.c Shell: kernel: Add runtime log filtering command 2022-07-12 12:24:43 +02:00