Cover of the book Symfony 5: The Fast Track

Symfony 5: The Fast Track is the best book to learn modern Symfony development, from zero to production. +300 pages showcasing Symfony with Docker, APIs, queues & async tasks, Webpack, SPAs, etc.


You are browsing the documentation for Symfony 5.0 which is not maintained anymore.

Consider upgrading your projects to Symfony 5.2.

Logging Configuration Reference (MonologBundle)

Logging Configuration Reference (MonologBundle)

The MonologBundle integrates the Monolog logging library in Symfony applications. All these options are configured under the monolog key in your application configuration.

# displays the default config values defined by Symfony
$ php bin/console config:dump-reference monolog

# displays the actual config values used by your application
$ php bin/console debug:config monolog


When using XML, you must use the namespace and the related XSD schema is available at:


For a full list of handler types and related configuration options, see Monolog Configuration.


When the profiler is enabled, a handler is added to store the logs’ messages in the profiler. The profiler uses the name “debug” so it is reserved and cannot be used in the configuration.

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.