Skip to content
Snippets Groups Projects
Commit 6206a7f0 authored by Fabrice Gangler's avatar Fabrice Gangler :art:
Browse files

chore: improve configuration [ config/packages/monolog.yaml ]

parent 04a72415
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,9 @@ when@dev:
monolog:
handlers:
main:
type: stream
# type: stream
type: rotating_file
max_files: 10
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: ["!event"]
......@@ -47,10 +49,14 @@ when@prod:
excluded_http_codes: [404, 405]
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
nested:
type: stream
path: php://stderr
type: rotating_file
max_files: 10
# type: stream
# path: php://stderr
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
formatter: monolog.formatter.json
# formatter: monolog.formatter.json
channels: ["!event"]
console:
type: console
process_psr_3_messages: false
......@@ -58,5 +64,6 @@ when@prod:
deprecation:
type: stream
channels: [deprecation]
path: php://stderr
formatter: monolog.formatter.json
path: "%kernel.logs_dir%/%kernel.environment%_deprecation.log"
# path: php://stderr
# formatter: monolog.formatter.json
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