SymfonyWorld Online 2021 Winter Edition December 9 – 10, 2021 100% Online 25 talks and 10 workshops

New in Symfony 5.4: Redesigned Profiler Logs

Symfony 5.4 is backed by Private Packagist. Private Packagist is a fast, reliable, and secure Composer repository for your private packages. It mirrors all your open-source dependencies for better availability and monitors them for security vulnerabilities.

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.

Help the Symfony project!

As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.

Comments

Awesome 💖
Very nice!
Great job Javier!
This is such a welcomed improvement! 🥰
Well done! Very appreciated enhancement!
Nice! Thank you Javier 👍
Nice! Tnx!
What Log Level do those messages with no label have?
Nice job!
Login with SymfonyConnect to post a comment