This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_LOG_OVERRIDE_LEVEL

Override lowest log level

Type: int

Help

Forces a minimum log level for all modules. Modules use their
specified level if it is greater than this option, otherwise they use
the level specified by this option instead of their default or
whatever was manually set.
Levels are:

- 0 OFF, do not override
- 1 ERROR, override to write LOG_LEVEL_ERR
- 2 WARNING, override to write LOG_LEVEL_WRN
- 3 INFO, override to write LOG_LEVEL_INFO
- 4 DEBUG, override to write LOG_LEVEL_DBG

Direct dependencies

LOG

(Includes any dependencies from ifs and menus.)

Default

  • 0

Kconfig definition

At subsys/logging/Kconfig.filtering:28

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

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

config LOG_OVERRIDE_LEVEL
    int "Override lowest log level"
    range 0 4
    default 0
    depends on LOG
    help
      Forces a minimum log level for all modules. Modules use their
      specified level if it is greater than this option, otherwise they use
      the level specified by this option instead of their default or
      whatever was manually set.
      Levels are:

      - 0 OFF, do not override
      - 1 ERROR, override to write LOG_LEVEL_ERR
      - 2 WARNING, override to write LOG_LEVEL_WRN
      - 3 INFO, override to write LOG_LEVEL_INFO
      - 4 DEBUG, override to write LOG_LEVEL_DBG

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)