php-http / logger-plugin

PSR-3 Logger plugin for HTTPlug
http://docs.php-http.org/en/latest/plugins/logger.html
MIT License
282 stars 7 forks source link

Better log display #2

Closed lyrixx closed 6 years ago

lyrixx commented 6 years ago
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
Documentation
License MIT

As the logger inlines HTTP request / response, it's really more readable if the message use many lines by default.

dbu commented 6 years ago

what is the visual impact of this? does it not waste too much space in the collapsed view of the request list? if you think its good there, i am all for doing it, seems the way one usually reads HTTP, with newlines to separate parts

lyrixx commented 6 years ago

@dbu It is really really cleaner ;)

With bin/console server:log -vvv --format="%datetime% %start_tag%%level_name%%end_tag% <comment>[%channel%]</> %message%\n" (I don't want to see extra & context, it already in the log message):

before: image

after: image

dbu commented 6 years ago

indeed. thanks a lot!

Nyholm commented 6 years ago

Thank you for the images!