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_BACKEND_FS

Enable file system backend

Type: bool

Help

When enabled, backend is using the configured file system to output logs.
As the file system must be mounted for the logging to work, it must be
either configured for auto-mount or manually mounted by the application.
Log messages are discarded as long as the file system is not mounted.

Direct dependencies

FILE_SYSTEM && !LOG_FRONTEND && !LOG_MINIMAL && LOG

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/logging/Kconfig.backends:306

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

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

config LOG_BACKEND_FS
    bool "Enable file system backend"
    depends on FILE_SYSTEM && !LOG_FRONTEND && !LOG_MINIMAL && LOG
    help
      When enabled, backend is using the configured file system to output logs.
      As the file system must be mounted for the logging to work, it must be
      either configured for auto-mount or manually mounted by the application.
      Log messages are discarded as long as the file system is not mounted.

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