CONFIG_LOG_MGMT_BODY_LEN

Maximum log body length

Type: int

Help

Limits the maximum length of log entry bodies, in bytes. If a log entry’s body length exceeds this number, it gets truncated in management responses. A buffer of this size gets allocated on the stack during handling of the log show command.

Direct dependencies

MCUMGR_CMD_LOG_MGMT && MCUMGR

(Includes any dependencies from ifs and menus.)

Default

  • 128

Kconfig definition

At subsys/mgmt/Kconfig.mcumgr:86

Included via Kconfig:8Kconfig.zephyr:41subsys/Kconfig:20subsys/mgmt/Kconfig:60

Menu path: (Top) → Management → mcumgr Support → Command handlers → Enable mcumgr handlers for log management

config LOG_MGMT_BODY_LEN
    int "Maximum log body length"
    default 128
    depends on MCUMGR_CMD_LOG_MGMT && MCUMGR
    help
      Limits the maximum length of log entry bodies, in bytes.  If a log
      entry's body length exceeds this number, it gets truncated in management
      responses.  A buffer of this size gets allocated on the stack during
      handling of the log show command.

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