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

feat(logger): improve automatic color support detection #3017

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

NamesMT
Copy link
Contributor

@NamesMT NamesMT commented Jun 21, 2024

The current color detection is not great and the log message in CloudWatch logs is hard to read.
image

The PR adds utils/flags.ts and improve getColorEnabled() using isColorSupported flag The flag have been moved to inline of the function to align with the current test cases.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant