From 9917ea4fe6b4a74d3cf262c159893c0bfa32c013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Fri, 15 Nov 2024 15:38:25 +0100 Subject: [PATCH] logging: formatting: Allow coloring in custom cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order to support error and warning message coloring LOG_BACKEND_SHOW_COLOR must be set. Allow setting it for customized cases. Signed-off-by: Krzysztof Chruściński --- subsys/logging/Kconfig.formatting | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subsys/logging/Kconfig.formatting b/subsys/logging/Kconfig.formatting index 58ca9bbecca..609b3c41786 100644 --- a/subsys/logging/Kconfig.formatting +++ b/subsys/logging/Kconfig.formatting @@ -134,9 +134,8 @@ config LOG_IMMEDIATE_CLEAN_OUTPUT config LOG_BACKEND_SHOW_COLOR bool "Colors in the backend" - depends on LOG_BACKEND_UART || LOG_BACKEND_NATIVE_POSIX || LOG_BACKEND_RTT \ + default y if LOG_BACKEND_UART || LOG_BACKEND_NATIVE_POSIX || LOG_BACKEND_RTT \ || LOG_BACKEND_SWO || LOG_BACKEND_XTENSA_SIM || SHELL_LOG_BACKEND - default y help When enabled selected backend prints errors in red and warning in yellow.