Commit 9917ea4f authored by Krzysztof Chruściński's avatar Krzysztof Chruściński Committed by Anas Nashif
Browse files

logging: formatting: Allow coloring in custom cases

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: default avatarKrzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
parent c6b663e5
Loading
Loading
Loading
Loading
+1 −2
Changes for subsys/logging/Kconfig.formatting: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -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.