]> Raphaƫl G. Git Repositories - blog/blob - config/packages/monolog.yaml
Update doctrine bundle recipe
[blog] / config / packages / monolog.yaml
1 monolog:
2 channels:
3 - deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
4
5 when@dev:
6 monolog:
7 handlers:
8 main:
9 type: stream
10 path: "%kernel.logs_dir%/%kernel.environment%.log"
11 level: debug
12 channels: ["!event"]
13 # uncomment to get logging in your browser
14 # you may have to allow bigger header sizes in your Web server configuration
15 #firephp:
16 # type: firephp
17 # level: info
18 #chromephp:
19 # type: chromephp
20 # level: info
21 console:
22 type: console
23 process_psr_3_messages: false
24 channels: ["!event", "!doctrine", "!console"]
25
26 when@test:
27 monolog:
28 handlers:
29 main:
30 type: fingers_crossed
31 action_level: error
32 handler: nested
33 excluded_http_codes: [404, 405]
34 channels: ["!event"]
35 nested:
36 type: stream
37 path: "%kernel.logs_dir%/%kernel.environment%.log"
38 level: debug
39
40 when@prod:
41 monolog:
42 handlers:
43 main:
44 type: fingers_crossed
45 action_level: error
46 handler: nested
47 excluded_http_codes: [404, 405]
48 buffer_size: 50 # How many messages should be saved? Prevent memory leaks
49 nested:
50 type: stream
51 path: php://stderr
52 level: debug
53 formatter: monolog.formatter.json
54 console:
55 type: console
56 process_psr_3_messages: false
57 channels: ["!event", "!doctrine"]
58 deprecation:
59 type: stream
60 channels: [deprecation]
61 path: php://stderr
62 formatter: monolog.formatter.json