Updated recipe for monolog/bundle.

This commit is contained in:
Jan Böhmer 2020-05-10 17:08:14 +02:00
parent fbc1c32463
commit 680297320b
3 changed files with 18 additions and 10 deletions

View file

@ -5,6 +5,7 @@ monolog:
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: "%kernel.logs_dir%/%kernel.environment%.log"
@ -13,11 +14,13 @@ 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"]
# 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"]

View file

@ -1,7 +1,12 @@
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
channels: ["!event"]

View file

@ -617,7 +617,7 @@
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "6240c6d43e8237a32452f057f81816820fd56ab6"
"ref": "a89f4cd8a232563707418eea6c2da36acd36a917"
},
"files": [
"./config/packages/dev/monolog.yaml",