Commit 30bf0c7a authored by Fabien Potencier's avatar Fabien Potencier

Merge branch '1.3'

* 1.3:
  Monolog doc: Use PSR-3 methods
  fixed .travis.yml
parents 43bf7655 a12c3216
......@@ -8,7 +8,7 @@ env:
cache:
directories:
- $HOME/.composer/cache
- $HOME/.composer/cache/files
before_install:
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi
......
......@@ -46,7 +46,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.
......@@ -71,15 +71,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