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

Update BrowserConsoleHandler console output method #1739

Merged
merged 1 commit into from Aug 2, 2022

Conversation

pafernandez-oesia
Copy link
Contributor

Instead of using console.log for all log levels, it uses debug, info, warn and error methods depending on the log level.
This makes filtering logs easier in the browser console and highlights error level messages.

@pafernandez-oesia
Copy link
Contributor Author

I think there must be a cleaner way to do it. Maybe someone with better knowledge of the base code can make a suggestion.

@Seldaek
Copy link
Owner

Seldaek commented Jul 30, 2022

That looks alright to me but it'd be nice if you can rebase it on the 2.x branch so it can be added to 2.9 release as well. I'll then merge it into main and change it to a match block there which would look a little cleaner.

@Seldaek Seldaek added this to the 2.x milestone Jul 30, 2022
Instead of using console.log for all log levels, it uses debug, info, warn and error methods depending on the log level.
This makes filtering logs easier in the browser console and highlights error level messages.
@pafernandez-oesia
Copy link
Contributor Author

I've rebased this same PR on 2.x. Not sure if I've correctly done it, as it is the first time I do this operation. Please, can you check it?

@Seldaek
Copy link
Owner

Seldaek commented Aug 1, 2022

Looks correct yes, thanks. I'm on vacation so merging and releasing will take a while

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

Successfully merging this pull request may close these issues.

None yet

2 participants