mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #1728] Why does BrowserConsoleHandler always use console.log? #724
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#724
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pafernandez-oesia on GitHub (Jul 8, 2022).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1728
Hi!
I was just wondering if there is any reason to use
console.logmethod for all log levels, instead of also usingdebug,info,warnanderrormethods depending on the log level. This makes filtering output easier in the browser console and clearly highlights error level messages.The following image shows an example output from Laravel using Monolog and a custom implementation of
BrowserConsoleHandler:I can make a PR if you find it useful.
Kind regards,
@Seldaek commented on GitHub (Jul 22, 2022):
Yeah that sounds good, I think it's mostly because this was done when browser consoles were still pretty basic :)
@Seldaek commented on GitHub (Aug 2, 2022):
Fixed by https://github.com/Seldaek/monolog/pull/1739