1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-09-02 09:32:51 +02:00

Restore getLevelName but deprecate it

This commit is contained in:
Jordi Boggiano
2022-04-24 13:49:06 +02:00
parent bd5968a567
commit c312cfdabf
2 changed files with 17 additions and 1 deletions

View File

@@ -28,7 +28,6 @@ Overall / notable changes:
e.g. instead of `Logger::WARNING` use `Level::Warning` if you need to pass the enum case
to Monolog or one of its handlers, or `Level::Warning->value` if you need the integer
value equal to what `Logger::WARNING` was giving you.
- `Logger::getLevelName` has been removed in favor of `Monolog\Level->toLevelName()->value`.
- `Logger::$levels` has been removed.
- `Logger::getLevels` has been removed in favor of `Monolog\Level::VALUES` or `Monolog\Level::cases()`.
- `setExceptionHandler` now requires a `Closure` instance and not just any `callable`.