CONFIG_LOG_DEFAULT_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

Direct dependencies

LOG || LOG

(Includes any dependencies from ifs and menus.)

Defaults

Kconfig definitions

At <nRF>/samples/Kconfig:89

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:33<Zephyr>/modules/Kconfig:6<nRF>/doc/_build/kconfig/Kconfig.modules:2<nRF>/Kconfig.nrf:91

Menu path: (Top) → Modules → nrf (/home/runner/work/sdk-nrf/sdk-nrf/ncs/nrf) → Nordic nRF Connect

config LOG_DEFAULT_LEVEL
    int
    default 1 if NCS_SAMPLES_DEFAULTS
    depends on LOG

At <Zephyr>/subsys/logging/Kconfig.filtering:13

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:44<Zephyr>/subsys/Kconfig:31<Zephyr>/subsys/logging/Kconfig:15

Menu path: (Top) → Sub Systems and OS Services → Logging → Logging levels filtering

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.)