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

Switch default Monolog formatter to new Syslog formatter when@dev #1111

Open
dkarlovi opened this issue Jul 22, 2022 · 3 comments
Open

Switch default Monolog formatter to new Syslog formatter when@dev #1111

dkarlovi opened this issue Jul 22, 2022 · 3 comments

Comments

@dkarlovi
Copy link

After symfony/monolog-bundle#441 is implemented, we can switch the dev.log to it.

Why

Currently the log file in dev is just a bunch of text, it's almost unreadable because of how busy it is. With tool like https://lnav.org/, this changes because you can get features like syntax highlight, advanced filtering, display customizations etc without any configuration (Syslog is recognized by default), improving the current situation where you can do similar thing with Idealog, but with custom config, etc.

See a quick example how it could look like:
Seldaek/monolog#1689 (comment)

Note: colors in the video are configurable, I know @javiereguiluz had issues with them in Slack. :)

@javiereguiluz
Copy link
Member

javiereguiluz commented Jul 22, 2022

I like this idea 👍

I don't know if this change could "break" logs for some folks, but it'd be great to make this change (if possible) because having Symfony logs formatted by default in PhpStorm without installing or configuring anything would be amazing. Thanks!

@Seldaek
Copy link
Member

Seldaek commented Jul 22, 2022

I think it should be part of the recipe but I'd maybe leave it commented out as a hint, and default to text, because while it is a bit of a mess, it is the only true cross platform solution.

@dkarlovi
Copy link
Author

@Seldaek I'm 👍 with having a commented out formatter, easy enough to switch on and the feature is visible enough for those who want it, it might not be for everyone indeed.

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

No branches or pull requests

3 participants