feat(core): Add Kconfig option to exclude debug log messages
This commit is contained in:
parent
702d79c108
commit
3f48062225
1 changed files with 11 additions and 4 deletions
15
app/Kconfig
15
app/Kconfig
|
@ -402,6 +402,17 @@ endmenu
|
||||||
|
|
||||||
menu "USB Logging"
|
menu "USB Logging"
|
||||||
|
|
||||||
|
config ZMK_LOGGING_MINIMAL
|
||||||
|
bool "Suppress all ZMK debug log messages"
|
||||||
|
default false
|
||||||
|
|
||||||
|
if !ZMK_LOGGING_MINIMAL
|
||||||
|
|
||||||
|
config ZMK_LOG_LEVEL
|
||||||
|
default 4
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
config ZMK_USB_LOGGING
|
config ZMK_USB_LOGGING
|
||||||
bool "Enable USB CDC ACM logging to help debug"
|
bool "Enable USB CDC ACM logging to help debug"
|
||||||
select LOG
|
select LOG
|
||||||
|
@ -417,16 +428,12 @@ config ZMK_USB_LOGGING
|
||||||
|
|
||||||
if ZMK_USB_LOGGING
|
if ZMK_USB_LOGGING
|
||||||
|
|
||||||
config ZMK_LOG_LEVEL
|
|
||||||
default 4
|
|
||||||
|
|
||||||
choice USB_CDC_ACM_LOG_LEVEL_CHOICE
|
choice USB_CDC_ACM_LOG_LEVEL_CHOICE
|
||||||
default USB_CDC_ACM_LOG_LEVEL_OFF
|
default USB_CDC_ACM_LOG_LEVEL_OFF
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
choice USB_DRIVER_LOG_LEVEL_CHOICE
|
choice USB_DRIVER_LOG_LEVEL_CHOICE
|
||||||
default USB_DRIVER_LOG_LEVEL_OFF
|
default USB_DRIVER_LOG_LEVEL_OFF
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
# We do this to avoid log loop where logging to USB generates more log messages.
|
# We do this to avoid log loop where logging to USB generates more log messages.
|
||||||
|
|
Loading…
Add table
Reference in a new issue