Commit 1dc7e60
committed
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
-------
3d415cb70d Log deprecations on a dedicated Monolog channelFile tree
2 files changed
+4
-3
lines changed- Resources/config
- Tests/DependencyInjection
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
| 428 | + | |
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
0 commit comments