1+ monolog :
2+ channels :
3+ - deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
4+
15when@prod :
26 monolog :
37 handlers :
@@ -8,68 +12,59 @@ when@prod:
812 excluded_http_codes : [404, 405]
913 buffer_size : 50 # How many messages should be saved? Prevent memory leaks
1014 nested :
11- type : stream
15+ type : rotating_file
1216 path : " %kernel.logs_dir%/%kernel.environment%.log"
1317 level : debug
18+ max_files : 30
19+ channels : [ "!deprecation" ]
1420 console :
1521 type : console
1622 process_psr_3_messages : false
17- channels : ["!event", "!doctrine"]
18- deprecation :
19- type : stream
20- path : " %kernel.logs_dir%/%kernel.environment%.deprecations.log"
21- deprecation_filter :
22- type : filter
23- handler : deprecation
24- max_level : info
25- channels : ["php"]
23+ channels : [ "!event", "!doctrine", "!console", "!deprecation" ]
2624
27- when@staging :
25+ when@staging : # Showroom DEV
2826 monolog :
2927 handlers :
3028 main :
3129 type : fingers_crossed
3230 action_level : error
3331 handler : nested
34- excluded_http_codes : [404, 405]
32+ excluded_http_codes : [405]
3533 buffer_size : 50 # How many messages should be saved? Prevent memory leaks
3634 nested :
37- type : stream
35+ type : rotating_file
3836 path : " %kernel.logs_dir%/%kernel.environment%.log"
3937 level : debug
38+ max_files : 30
39+ channels : [ "!deprecation" ]
40+ deprecation :
41+ type : rotating_file
42+ path : " %kernel.logs_dir%/%kernel.environment%.deprecations.log"
43+ max_files : 2
44+ channels : [ "deprecation" ]
4045 console :
4146 type : console
4247 process_psr_3_messages : false
43- channels : ["!event", "!doctrine"]
44- deprecation :
45- type : stream
46- path : " %kernel.logs_dir%/%kernel.environment%.deprecations.log"
47- deprecation_filter :
48- type : filter
49- handler : deprecation
50- max_level : info
51- channels : ["php"]
48+ channels : [ "!event", "!doctrine", "!console", "!deprecation" ]
5249
5350when@dev :
5451 monolog :
5552 handlers :
5653 main :
57- type : stream
54+ type : rotating_file
5855 level : DEBUG
5956 path : " %kernel.logs_dir%/%kernel.environment%.log"
60- channels : [ "!event", "!php" ]
57+ max_files : 10
58+ channels : [ "!event", "!php", "!deprecation" ]
6159 deprecation :
62- type : stream
60+ type : rotating_file
6361 path : " %kernel.logs_dir%/%kernel.environment%.deprecations.log"
64- deprecation_filter :
65- type : filter
66- handler : deprecation
67- max_level : info
68- channels : [ "php" ]
62+ max_files : 2
63+ channels : [ "deprecation" ]
6964 console :
7065 type : console
7166 process_psr_3_messages : false
72- channels : [ "!event", "!doctrine", "!console" ]
67+ channels : [ "!event", "!doctrine", "!console", "!deprecation" ]
7368
7469when@test :
7570 monolog :
@@ -83,4 +78,4 @@ when@test:
8378 nested :
8479 type : stream
8580 path : " %kernel.logs_dir%/%kernel.environment%.log"
86- level : debug
81+ level : debug
0 commit comments