8000 Update conf to log deprecations in a dedicated channel by nicolas-grekas · Pull Request #775 · symfony/recipes · GitHub
[go: up one dir, main page]

Skip to content

Update conf to log deprecations in a dedicated channel #775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from
May 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions symfony/monolog-bundle/3.1/config/packages/dev/monolog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ monolog:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine", "!console"]
# # As of Symfony 4.3 you can configure the log output:
# console_formater_options:
# format: "%%datetime%% %%start_tag%%%%level_name%%%%end_tag%% <comment>[%%channel%%]</> %%message%%%%context%%\n"
# multiline: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# As of Symfony 5.1, deprecations are logged in the dedicated "deprecation" channel when it exists
#monolog:
# channels: [deprecation]
# handlers:
# deprecation:
# type: stream
# channels: [deprecation]
# path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"
8 changes: 0 additions & 8 deletions symfony/monolog-bundle/3.1/config/packages/prod/monolog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,3 @@ monolog:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
deprecation:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"
deprecation_filter:
type: filter
handler: deprecation
max_level: info
channels: ["php"]
1 change: 1 addition & 0 deletions symfony/monolog-bundle/3.3/config/packages/dev
19 changes: 0 additions & 19 deletions symfony/monolog-bundle/3.3/config/packages/dev/monolog.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions symfony/monolog-bundle/3.3/config/packages/prod/monolog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,3 @@ monolog:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]

# Uncomment to log deprecations
#deprecation:
# type: stream
# path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"
#deprecation_filter:
# type: filter
# handler: deprecation
# max_level: info
# channels: ["php"]
0