feat(core): Add Kconfig option to exclude debug log messages

This commit is contained in:
Xudong Zheng 2023-02-24 18:11:46 -05:00 committed by Pete Johanson
parent 702d79c108
commit 3f48062225

View File

@ -402,6 +402,17 @@ endmenu
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
bool "Enable USB CDC ACM logging to help debug"
select LOG
@ -417,16 +428,12 @@ config ZMK_USB_LOGGING
if ZMK_USB_LOGGING
config ZMK_LOG_LEVEL
default 4
choice USB_CDC_ACM_LOG_LEVEL_CHOICE
default USB_CDC_ACM_LOG_LEVEL_OFF
endchoice
choice USB_DRIVER_LOG_LEVEL_CHOICE
default USB_DRIVER_LOG_LEVEL_OFF
endchoice
# We do this to avoid log loop where logging to USB generates more log messages.