Add upgrade instructions for the LoggerInterface

This commit is contained in:
Charles-Eric Gorron 2014-04-07 11:07:52 +02:00 committed by Fabien Potencier
parent 17d7186cf8
commit 6daa2951fc
1 changed files with 20 additions and 0 deletions

View File

@ -646,3 +646,23 @@
extended with an optional `$context` array. This was necessary to allow for
more complex use-cases that require context information during the
(de)normalization and en-/decoding steps.
### HttpKernel
* The `Symfony\Component\HttpKernel\Log\LoggerInterface` now extends `Psr\Log\LoggerInterface`.
So if you have implemented your own logger, you need to implement these methods:
* `emergency`
* `critical`
* `error`
* `warning`
* `log`
#### Deprecations:
* The following Logger methods are deprecated and will be removed in 3.0. You should use the new PSR-3 methods:
* `emerg()` -> `emergency()`
* `crit()` -> `critical()`
* `err()` -> `error()`
* `warn()` -> `warning()`