Added an environment for the demo

In this environment the exception are logged to stderr, so we can access it via heroku.
This commit is contained in:
Jan Böhmer 2019-08-10 17:20:23 +02:00
parent 01a83d388b
commit 368645f0cb
3 changed files with 56 additions and 1 deletions

View file

@ -0,0 +1,23 @@
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
excluded_http_codes: [404, 405]
nested:
type: stream
path: "php://stderr"
level: debug
console:
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"]