Add upgrade instructions for the LoggerInterface
This commit is contained in:
parent
17d7186cf8
commit
6daa2951fc
|
@ -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()`
|
||||
|
|
Reference in New Issue