Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logging: backend_fs: disable ANSI color for filesystem logging #84542

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EricNRS
Copy link
Contributor

@EricNRS EricNRS commented Jan 24, 2025

Disable ANSI color output for the filesystem backend.

Previously with LOG_BACKEND_SHOW_COLOR=n and CONFIG_SHELL_VT100_COLORS=y the shell would still display colors by enabling the flag in the shell_log_backend.c.

See discussion in https://discord.com/channels/720317445772017664/1331905134703284274 for some context.

Before the fix for zephyrproject-rtos#77150 was merged, with LOG_BACKEND_SHOW_COLOR=n and
CONFIG_SHELL_VT100_COLORS=y the shell would still display colors by
enabling the flag in the shell_log_backend.c.

Now, LOG_BACKEND_SHOW_COLOR has to be enabled to allow shell logging
color, but that writes ANSI escape sequences to the log files.

Explicitly disable ANSI color output for the filesystem logging backend.

Signed-off-by: Eric Holmberg <[email protected]>
@zephyrbot zephyrbot added size: XS A PR changing only a single line of code area: Logging labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Logging size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants