Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #36621 Log deprecations on a dedicated Monolog channel (l-vo)
This PR was squashed before being merged into the 5.1-dev branch. Discussion ---------- Log deprecations on a dedicated Monolog channel | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | https://github.com/orgs/symfony/projects/1#card-35233930 | License | MIT | Doc PR | This PR allows to activate a specific channel for deprecations. ## Base configuration ```yaml monolog: handlers: #... deprecation: type: stream path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log" deprecation_filter: type: filter handler: deprecation max_level: info channels: ["php"] ``` ## Deprecation specific channel enabled: ```yaml monolog: channels: ['deprecation'] handlers: #... deprecation: type: stream channels: ["deprecation"] path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log" ``` Commits ------- 3d415cb Log deprecations on a dedicated Monolog channel
- Loading branch information
Showing
5 changed files
with
147 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
CHANGELOG | ||
========= | ||
|
||
5.2.0 | ||
----- | ||
|
||
* allowed to use a specific logger channel for deprecations | ||
|
||
5.1.0 | ||
----- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters