Javier Eguiluz
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 Symfony 5.4

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

Symfony Profiler Logs Filters Before Symfony 5.4

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 in Symfony 5.4

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 by Type

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 by Level

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.

Published in #Living on the edge