Bluetooth: Logging: Move all logging symbols together
Move all Kconfig symbols related to Bluetooth logging into the newly created `Kconfig.logging`. The logging symbols are now grouped by into a menu "Bluetooth logging". Closely related symbols are grouped with each others. For example, audio related logging symbol are found behind a submenu "Audio" inside the "Bluetooth logging". The deprecated logging symbols have also been moved in a submenu of "Bluetooth logging", it's easier to avoid them so. Behavior of the Bluetooth logging system: When `LOG` symbol is selected, if Bluetooth is enabled (`BT` symbol selected), the Bluetooth logging is enabled. If the user does not set any log level, the Bluetooth logging symbols will inherit the log level of `BT_LOG_LEVEL`. If the user does not set the level of `BT_LOG_LEVEL`, the default log level will be the one defined by the logging subsystem. Which currently is `LOG_LEVEL_INF`. Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
This commit is contained in:
parent
3af095b122
commit
af01a0f313
27 changed files with 1086 additions and 990 deletions
|
@ -1551,19 +1551,6 @@ config BT_MESH_SEQ_STORE_RATE
|
|||
|
||||
endif # BT_SETTINGS
|
||||
|
||||
config BT_MESH_DEBUG
|
||||
bool "Debug logs"
|
||||
select DEPRECATED
|
||||
depends on BT_DEBUG
|
||||
help
|
||||
Use this option to enable debug logs for the Bluetooth
|
||||
Mesh functionality.
|
||||
|
||||
module = BT_MESH
|
||||
legacy-debug-sym = BT_MESH_DEBUG
|
||||
module-str = "Debug logs"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
if BT_MESH_LOG_LEVEL_DBG
|
||||
|
||||
config BT_MESH_DEBUG_USE_ID_ADDR
|
||||
|
@ -1574,226 +1561,6 @@ config BT_MESH_DEBUG_USE_ID_ADDR
|
|||
traces), however it should never be enabled for a production
|
||||
build as it compromises the privacy of the device.
|
||||
|
||||
config BT_MESH_DEBUG_NET
|
||||
bool "Network layer debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable Network layer debug logs for the
|
||||
Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_NET
|
||||
legacy-debug-sym = BT_MESH_DEBUG_NET
|
||||
module-str = "Network layer"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_RPL
|
||||
bool "Replay protection list debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable Replay protection list debug logs
|
||||
for the Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_RPL
|
||||
legacy-debug-sym = BT_MESH_DEBUG_RPL
|
||||
module-str = "Replay protection list"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_TRANS
|
||||
bool "Transport layer debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable Transport layer debug logs for the
|
||||
Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_TRANS
|
||||
legacy-debug-sym = BT_MESH_DEBUG_TRANS
|
||||
module-str = "Transport layer"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_BEACON
|
||||
bool "Beacon debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable Beacon-related debug logs for the
|
||||
Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_BEACON
|
||||
legacy-debug-sym = BT_MESH_DEBUG_BEACON
|
||||
module-str = "Beacon"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_CRYPTO
|
||||
bool "Crypto debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable cryptographic debug logs for the
|
||||
Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_CRYPTO
|
||||
legacy-debug-sym = BT_MESH_DEBUG_CRYPTO
|
||||
module-str = "Crypto"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_KEYS
|
||||
bool "Key management debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable key management debug logs for the
|
||||
Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_KEYS
|
||||
legacy-debug-sym = BT_MESH_DEBUG_KEYS
|
||||
module-str = "Key management"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_PROV
|
||||
bool "Provisioning debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable Provisioning debug logs for the
|
||||
Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_PROV
|
||||
legacy-debug-sym = BT_MESH_DEBUG_PROV
|
||||
module-str = "Provisioning"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_PROVISIONER
|
||||
bool "Provisioner debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable Provisioner debug logs for the
|
||||
Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_PROVISIONER
|
||||
legacy-debug-sym = BT_MESH_DEBUG_PROVISIONER
|
||||
module-str = "Provisioner"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_PROV_DEVICE
|
||||
bool "Provisioning device debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable Provisioning device debug logs for the
|
||||
Bluetooth Mesh functionality.
|
||||
|
||||
module = BT_MESH_PROV_DEVICE
|
||||
legacy-debug-sym = BT_MESH_DEBUG_PROV_DEVICE
|
||||
module-str = "Provisioning device"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_ACCESS
|
||||
bool "Access layer debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable Access layer and device composition
|
||||
related debug logs for Bluetooth mesh.
|
||||
|
||||
module = BT_MESH_ACCESS
|
||||
legacy-debug-sym = BT_MESH_DEBUG_ACCESS
|
||||
module-str = "Access layer"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_MODEL
|
||||
bool "Foundation model debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable debug logs for the Foundation
|
||||
Models.
|
||||
|
||||
module = BT_MESH_MODEL
|
||||
legacy-debug-sym = BT_MESH_DEBUG_MODEL
|
||||
module-str = "Foundation model"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
module = BT_MESH_DFU
|
||||
module-str = "DFU model"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_ADV
|
||||
bool "Advertising debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable advertising debug logs for
|
||||
the Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_ADV
|
||||
legacy-debug-sym = BT_MESH_DEBUG_ADV
|
||||
module-str = "Advertising"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_LOW_POWER
|
||||
bool "Low Power debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable Low Power debug logs for the
|
||||
Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_LOW_POWER
|
||||
legacy-debug-sym = BT_MESH_DEBUG_LOW_POWER
|
||||
module-str = "Low Power"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_FRIEND
|
||||
bool "Friend debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable Friend debug logs for the
|
||||
Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_FRIEND
|
||||
legacy-debug-sym = BT_MESH_DEBUG_FRIEND
|
||||
module-str = "Friend"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_PROXY
|
||||
bool "Proxy debug"
|
||||
select DEPRECATED
|
||||
depends on BT_MESH_GATT
|
||||
help
|
||||
Use this option to enable Proxy protocol debug logs.
|
||||
|
||||
module = BT_MESH_PROXY
|
||||
legacy-debug-sym = BT_MESH_DEBUG_PROXY
|
||||
module-str = "Proxy"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_SETTINGS
|
||||
bool "Persistent settings debug"
|
||||
select DEPRECATED
|
||||
depends on BT_SETTINGS
|
||||
help
|
||||
Use this option to enable persistent settings debug logs.
|
||||
|
||||
module = BT_MESH_SETTINGS
|
||||
legacy-debug-sym = BT_MESH_DEBUG_SETTINGS
|
||||
module-str = "Persistent settings"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_CDB
|
||||
bool "Configuration database debug"
|
||||
select DEPRECATED
|
||||
depends on BT_MESH_CDB
|
||||
help
|
||||
Use this option to enable configuration database debug logs.
|
||||
|
||||
module = BT_MESH_CDB
|
||||
legacy-debug-sym = BT_MESH_DEBUG_CDB
|
||||
module-str = "Configuration database"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
config BT_MESH_DEBUG_CFG
|
||||
bool "Configuration debug"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use this option to enable node configuration debug logs for the
|
||||
Bluetooth mesh functionality.
|
||||
|
||||
module = BT_MESH_CFG
|
||||
legacy-debug-sym = BT_MESH_DEBUG_CFG
|
||||
module-str = "Configuration"
|
||||
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
|
||||
|
||||
endif # BT_MESH_LOG_LEVEL_DBG
|
||||
|
||||
endif # BT_MESH
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue