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 <Zephyr>/subsys/mgmt/mcumgr/Kconfig:192

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/Kconfig:32<Zephyr>/subsys/mgmt/Kconfig:9

Menu path: (Top) → Sub Systems and OS Services → Device 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.)