PHPnews.io

New in Symfony 5.4: Redesigned Profiler Logs

Written by Symfony blog / Original link on Nov. 17, 2021

9dc22dfc54bd9c666c72ebcd73d2fdd7?s=100

Contributed by
Javier Eguiluz
in #42195.

The logs section is one of the key features of the Symfony profiler. It shows you not only the debug/info and error logs but also all the deprecations triggered by your application.

In current Symfony versions it looks like this:

symfony-profiler-logs-before.png

It also provides some rudimentary filters to only show logs of certain type or level:

symfony-profiler-logs-filters-before.gif

In Symfony 5.4 we've redesigned this log section entirely. First, the contents of each log message (which include the timestamp, the log channel(s), etc.) have been rearranged to make them easier to understand, especially when you scan a long list of log messages:

symfony-profiler-logs-5-4.png

We've also redesigned the filters so you can find the relevant messages faster. The "filter by type" comes in handy to focus on errors and deprecations first:

symfony-profiler-logs-new-filters-type.gif

The other filters provide a "filter by type" and "filter by level" feature which is more advanced and faster than the existing filters:

symfony-profiler-logs-new-filters-level.gif

We've made other tweaks and improvements, such as hiding by default the container compilation logs, which usually are not relevant on your day to day work.

Sponsor the Symfony project.

symfony

« Announcing the Final Schedule of SymfonyWorld Online 2021 Winter Conference - Style the New Tweet Screen »