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