Commit 2f882f45 authored by Tobias Schultze's avatar Tobias Schultze Committed by Fabien Potencier

Monolog doc: Use PSR-3 methods

The other methods are not PSR-3 standard and will be removed in monolog 2.
parent 09afa63e
......@@ -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