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

Option to disable formatting on console logs [FEATURE SUGGESTION] #10

Open
catonice opened this issue Jul 27, 2021 · 1 comment
Open

Comments

@catonice
Copy link

I have a suggestion:

  • Provide a flag to disable formatting on messages
  • When reading logs in Elasticsearch, Kibana, we can see the color tags in of the logs. The formatting doesn't help us there however the other functionality (timestamps, message types, etc.) do help us. To clean up logs, I'd like to remove any color, styling etc. settings and I have made a rudimentary branch where setting disableFormatting=true allows different conditional blocks to trigger where no coloring, boldness etc. is applied to messages.

Please let me know what you think.

dr-dimitru added a commit that referenced this issue May 31, 2022
dr-dimitru added a commit that referenced this issue May 31, 2022
- ✨ `highlight` option to disable console-colors, implementing #10, thanks to @catonice
- 👨‍🔧 Fix #9 by upgrading `ostrio:[email protected]`, thanks to @bladerunner2020
- 👨‍💻 Minor codebase refactoring
- 🤝 Support for `[email protected]`
- 👨‍🔬 Improve test suite
@dr-dimitru
Copy link
Member

Hello @catonice,

This was implemented as { highlight: Boolean } option for LoggerConsole constructor, see updated docs. Please upgrade to 2.1.0 and let me know if this is solved

Feel free to close it in case if the issue is solved on your end.

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

No branches or pull requests

2 participants