Files
ZephCore/zephcore/boards/common/logging.conf
T
2026-03-14 10:37:49 +01:00

24 lines
1.0 KiB
Plaintext

# Logging Tuning — included automatically for debug builds only.
# Prod builds (CONFIG_LOG=n via prod.conf) skip this file entirely,
# avoiding Kconfig warnings from log settings that depend on CONFIG_LOG.
# ZephCore BLE modules at INF level (connection lifecycle, pairing, TX/RX)
# Default level is WRN — this ensures our INF messages come through.
# Avoid DBG level — it causes system workqueue stack overflow.
CONFIG_ZEPHCORE_BLE_LOG_LEVEL_INF=y
# Deferred mode (non-blocking) — buffer/thread config
CONFIG_LOG_BUFFER_SIZE=8192
CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD=1
CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=2048
# Backends
# NOTE: UART backend on nRF52 routes through USB CDC ACM (zephyr,console = &cdc_acm_uart).
# There is no LOG_BACKEND_UART_MODE_DROP in Zephyr — if the USB host disconnects, the log
# processing thread stalls on uart_poll_out(). Disable UART backend on nRF52 to avoid this;
# RTT (below) is the reliable debug path and already configured with drop mode.
CONFIG_LOG_BACKEND_RTT=y
# Suppress noisy subsystem logs
CONFIG_CFB_LOG_LEVEL_ERR=y