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

Add prefixes to log messaging #16972

Closed
ShadowJonathan opened this issue Apr 16, 2021 · 3 comments
Closed

Add prefixes to log messaging #16972

ShadowJonathan opened this issue Apr 16, 2021 · 3 comments
Labels

Comments

@ShadowJonathan
Copy link
Contributor

Currently Element logs a bunch of stuff just plain to console.log, like this;
image
This is a bit verbose, and so I think it'd be more helpful if it could be prefixed with the "domains" of those logs like Discord does;
image

@SimonBrandner SimonBrandner added A-DevTools /devtools, show hidden events, etc. P3 labels Apr 16, 2021
@germain-gg
Copy link
Contributor

The rageshake.js:00 link on the right hand side of those logs is rather useless, however there's a nifty trick that is printed at the very top of the logs that will let you have the correct file and link to the original file/line

To fix line numbers in Chrome: Meatball menu → Settings → Ignore list → Add rageshake\.js$

Let me know if that fixes your use case or if there is something else you had in mind

@turt2live
Copy link
Member

somewhere we have a dream of structured logging in Element, but I'm not sure that's tracked in an issue yet.

@Johennes
Copy link
Contributor

Assuming this is addressed by Germain's comment

@Johennes Johennes closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants