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

Support for colorized logs #16744

Open
matuscongrady opened this issue Jan 31, 2020 · 8 comments
Open

Support for colorized logs #16744

matuscongrady opened this issue Jan 31, 2020 · 8 comments

Comments

@matuscongrady
Copy link

Hi,

Our use case:
We print colorized logs to the terminal (from a node.js application).
These logs use special ANSI escape characters to add color to the terminal. For example \u001B

image

Unfortunately, sentry does not recognize these characters and our logs look are hard to read because of that.

It would be nice if you could convert these characters into actual colors, or remove them completely from the string.

It would make our debugging experience way more enjoyable.

Thank you!

@mitsuhiko
Copy link
Member

@untitaker wonder if we would want to discard this on normalization or deal with it in the UI.

@untitaker
Copy link
Member

It would be sick to render those colors in the UI ;)

@untitaker
Copy link
Member

So to be clear I don't think much of normalizing them away. If we don't want this in the schema I think we should figure out why the instrumentation captures logs after formatting

@MhdSyrwan
Copy link

MhdSyrwan commented Apr 24, 2020

any updates on this?

@untitaker as far as i know, there is no way to capture that before formatting. since people usually generate these logs using chalk nodejs lib or a similar thing. it's already printed with these ansi colors annotations.

in order to make this work, we need at least to remove these ansi annotations if displaying a clolored log is not an option.

@untitaker
Copy link
Member

Right, we didn't really start working on this yet but we're discussing internally what to do about it.

@windware-ono
Copy link

Any news?
I'd like the support for this too.

It looks semi garbage with the ansi escape sequences all over.

log-ansi-color

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2021

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@ImUrX
Copy link

ImUrX commented Jun 29, 2023

Any place I should look in the code to start adding support for this, or at least for now normalize it?

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

8 participants