Skip to content

[DRAFT] feat(log): add option to strip ansi colors #2228

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mikesmithgh
Copy link
Contributor

@mikesmithgh mikesmithgh commented Sep 22, 2023

This is a draft PR to get feedback on the approach.

I referenced some implementations of stripping ANSI color sequences and added it to the logger.

If this looks like a good approach, I was thinking to add a config option under logger as a boolean stipAnsi. Maybe a toggle to the log indicator section as well.

Please let me know what you think.

This would resolve #1297

Example with ANSI:
ansi-logs

Example no ANSI:
strip-ansi-logs

@froats
Copy link

froats commented Jul 24, 2025

what is the state of this pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-review PR needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add way to disable colors
3 participants