Commit 4c0da4d3 authored by Fabien Potencier's avatar Fabien Potencier

merged branch igorw/psr-log-doc (PR #745)

This PR was merged into the master branch.

Discussion
----------

Adjust docs on how to enable logger service

Commits
-------

9ba29bde Adjust docs on how to enable logger service
parents d74dc00d 9ba29bde
...@@ -226,8 +226,9 @@ don't want to mess with most of them. ...@@ -226,8 +226,9 @@ don't want to mess with most of them.
``$app['exception_handler']->disable()``. ``$app['exception_handler']->disable()``.
* **logger**: A ``Psr\Log\LoggerInterface`` instance. By default, logging is * **logger**: A ``Psr\Log\LoggerInterface`` instance. By default, logging is
disabled as the value is set to ``null``. When the Symfony2 Monolog bridge is disabled as the value is set to ``null``. To enable logging you can either use
installed, Monolog is automatically used as the default logger. the ``MonologServiceProvider`` or define your own ``logger`` service that
conforms to the PSR logger interface.
In versions of Silex before 1.1 this must be a In versions of Silex before 1.1 this must be a
``Symfony\Component\HttpKernel\Log\LoggerInterface``. ``Symfony\Component\HttpKernel\Log\LoggerInterface``.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment