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