Upgrade recipes: symfony/monolog-bundle

This commit is contained in:
Julien Fastré 2023-09-06 12:14:53 +02:00
parent d2717b0875
commit cd876bd889
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
6 changed files with 68 additions and 49 deletions

View File

@ -1,21 +0,0 @@
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: ["!event"]
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
# type: firephp
# level: info
#chromephp:
# type: chromephp
# level: info
console:
type: console
process_psr_3_messages: false
channels: ['!event', '!doctrine', '!console']
bubble: false

View File

@ -0,0 +1,62 @@
monolog:
channels:
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
when@dev:
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: ["!event"]
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
# type: firephp
# level: info
#chromephp:
# type: chromephp
# level: info
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine", "!console"]
when@test:
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
excluded_http_codes: [404, 405]
channels: ["!event"]
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
# those comes from the symfony recipe. But this is overriden by the ./prod/monolog.yaml config
# when@prod:
# monolog:
# handlers:
# main:
# type: fingers_crossed
# action_level: error
# handler: nested
# excluded_http_codes: [404, 405]
# buffer_size: 50 # How many messages should be saved? Prevent memory leaks
# nested:
# type: stream
# path: php://stderr
# level: debug
# formatter: monolog.formatter.json
# console:
# type: console
# process_psr_3_messages: false
# channels: ["!event", "!doctrine"]
# deprecation:
# type: stream
# channels: [deprecation]
# path: php://stderr

View File

@ -1,8 +0,0 @@
# 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"

View File

@ -25,6 +25,7 @@ monolog:
id: monolog.gelf_handler id: monolog.gelf_handler
level: info level: info
channels: ['!event', '!php'] channels: ['!event', '!php']
excluded_http_codes: [404, 405]
console: console:
type: console type: console

View File

@ -1,12 +0,0 @@
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
excluded_http_codes: [404, 405]
channels: ["!event"]
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug

View File

@ -604,18 +604,15 @@
"version": "v5.1.3" "version": "v5.1.3"
}, },
"symfony/monolog-bundle": { "symfony/monolog-bundle": {
"version": "3.3", "version": "3.8",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "master", "branch": "main",
"version": "3.3", "version": "3.7",
"ref": "d7249f7d560f6736115eee1851d02a65826f0a56" "ref": "213676c4ec929f046dfde5ea8e97625b81bc0578"
}, },
"files": [ "files": [
"config/packages/dev/monolog.yaml", "config/packages/monolog.yaml"
"config/packages/prod/deprecations.yaml",
"config/packages/prod/monolog.yaml",
"config/packages/test/monolog.yaml"
] ]
}, },
"symfony/options-resolver": { "symfony/options-resolver": {