CONFIG_SYS_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 wont be activated for those modules. Levels are: 0 OFF, do not write by default 1 ERROR, default to only write SYS_LOG_ERR 2 WARNING, default to write SYS_LOG_WRN in addition to previous level 3 INFO, default to write SYS_LOG_INF in addition to previous levels 4 DEBUG, default to write SYS_LOG_DBG in addition to previous levels

Direct dependencies

SYS_LOG

(Includes any dependencies from if’s and menus.)

Defaults

Kconfig definition

At subsys/logging/Kconfig:29

Included via Kconfig:10Kconfig.zephyr:35subsys/Kconfig:18

Menu path: (top menu) → Logging Options

config SYS_LOG_DEFAULT_LEVEL
    int
    prompt "Default log level" if SYS_LOG
    range 0 4 if SYS_LOG
    default 0 if SYS_LOG
    depends on SYS_LOG
    help
      Sets log level for modules which don't specify it explicitly. When
      set to 0 it means log wont be activated for those modules.
      Levels are:
      0 OFF, do not write by default
      1 ERROR, default to only write SYS_LOG_ERR
      2 WARNING, default to write SYS_LOG_WRN in addition to previous level
      3 INFO, default to write SYS_LOG_INF in addition to previous levels
      4 DEBUG, default to write SYS_LOG_DBG in addition to previous levels

(Definitions include propagated dependencies, including from if’s and menus.)