-
CONFIG_LOG_DEFAULT_LEVEL
¶
Default log level
Default log level
Type: int
Help¶
Sets log level for modules which don’t specify it explicitly. When set to 0 it means log will not be activated for those modules. Levels are:
0 OFF, do not write by default
1 ERROR, default to only write LOG_LEVEL_ERR
2 WARNING, default to write LOG_LEVEL_WRN
3 INFO, default to write LOG_LEVEL_INFO
4 DEBUG, default to write LOG_LEVEL_DBG
Help¶
Sets log level for modules which don’t specify it explicitly. When set to 0 it means log will not be activated for those modules. Levels are:
0 OFF, do not write by default
1 ERROR, default to only write LOG_LEVEL_ERR
2 WARNING, default to write LOG_LEVEL_WRN
3 INFO, default to write LOG_LEVEL_INFO
4 DEBUG, default to write LOG_LEVEL_DBG
Defaults¶
1 if
NCS_SAMPLES_DEFAULTS
3
Kconfig definitions¶
At /jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/nrf/samples/Kconfig:22
Included via Kconfig:8
→ Kconfig.zephyr:9
→ /jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/test_doc/_build/Kconfig.modules:1
→ /jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/nrf/Kconfig.nrf:9
Menu path: (Top) → Modules → Nordic nRF Connect
config LOG_DEFAULT_LEVEL int "Default log level" range 0 4 default 1 ifNCS_SAMPLES_DEFAULTS
depends onLOG
help Sets log level for modules which don't specify it explicitly. When set to 0 it means log will not be activated for those modules. Levels are: - 0 OFF, do not write by default - 1 ERROR, default to only write LOG_LEVEL_ERR - 2 WARNING, default to write LOG_LEVEL_WRN - 3 INFO, default to write LOG_LEVEL_INFO - 4 DEBUG, default to write LOG_LEVEL_DBG
At subsys/logging/Kconfig:32
Included via Kconfig:8
→ Kconfig.zephyr:44
→ subsys/Kconfig:18
Menu path: (Top) → Logging
config LOG_DEFAULT_LEVEL
int "Default log level"
range 0 4
default 3
depends on LOG
help
Sets log level for modules which don't specify it explicitly. When
set to 0 it means log will not be activated for those modules.
Levels are:
- 0 OFF, do not write by default
- 1 ERROR, default to only write LOG_LEVEL_ERR
- 2 WARNING, default to write LOG_LEVEL_WRN
- 3 INFO, default to write LOG_LEVEL_INFO
- 4 DEBUG, default to write LOG_LEVEL_DBG
(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)