Skip to content
Snippets Groups Projects
Commit 3dc74b15 authored by pfleu's avatar pfleu
Browse files

Config monolog pour env test

parent b8ed52ee
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ when@test: ...@@ -26,7 +26,7 @@ when@test:
doctrine: doctrine:
dbal: dbal:
# "TEST_TOKEN" is typically set by ParaTest # "TEST_TOKEN" is typically set by ParaTest
dbname_suffix: '_test%env(default::TEST_TOKEN)%' # dbname_suffix: '_test%env(default::TEST_TOKEN)%'
when@prod: when@prod:
doctrine: doctrine:
......
...@@ -30,13 +30,29 @@ when@test: ...@@ -30,13 +30,29 @@ when@test:
main: main:
type: fingers_crossed type: fingers_crossed
action_level: error action_level: error
handler: nested handler: grouped
excluded_http_codes: [404, 405] excluded_http_codes: [404, 405]
channels: ["!event"] buffer_size: 50 # How many messages should be saved? Prevent memory leaks
nested: grouped:
type: stream type: group
path: "%kernel.logs_dir%/%kernel.environment%.log" members: [streamed, deduplicated]
streamed:
type: rotating_file
max_files: 30
path: '%kernel.logs_dir%/%kernel.environment%.log'
level: debug level: debug
deduplicated:
type: deduplication
time: 10 # the time in seconds during which duplicate entries are discarded (default: 60)
handler: symfony_mailer
symfony_mailer:
type: symfony_mailer
from_email: '%env(MONOLOG_ERROR_MAIL_FROM)%'
to_email: ['fleutotp@gmail.com', 'enzo.simonnet@liris.cnrs.fr']
subject: 'Bug Balex %env(INSTANCE)% %kernel.environment% : %%message%%'
level: critical
formatter: monolog.formatter.extra_data
content_type: text/html
when@prod: when@prod:
monolog: monolog:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment