Commit a12c3216 authored by Fabien Potencier's avatar Fabien Potencier

minor #1438 Monolog doc: Use PSR-3 methods (Tobion)

This PR was submitted for the master branch but it was merged into the 1.3 branch instead (closes #1438).

Discussion
----------

Monolog doc: Use PSR-3 methods

The other methods are not PSR-3 standard and will be removed in monolog 2.

Commits
-------

2f882f45 Monolog doc: Use PSR-3 methods
parents 09afa63e 2f882f45
......@@ -35,7 +35,7 @@ Services
Example usage::
$app['monolog']->addDebug('Testing the Monolog logging.');
$app['monolog']->debug('Testing the Monolog logging.');
* **monolog.listener**: An event listener to log requests, responses and errors.
......@@ -61,15 +61,15 @@ Usage
-----
The MonologServiceProvider provides a ``monolog`` service. You can use it to
add log entries for any logging level through ``addDebug()``, ``addInfo()``,
``addWarning()`` and ``addError()``::
add log entries for any logging level through ``debug()``, ``info()``,
``warning()`` and ``error()``::
use Symfony\Component\HttpFoundation\Response;
$app->post('/user', function () use ($app) {
// ...
$app['monolog']->addInfo(sprintf("User '%s' registered.", $username));
$app['monolog']->info(sprintf("User '%s' registered.", $username));
return new Response('', 201);
});
......
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