We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
stderr
./var/log/prod.log
config/packages/monolog.yaml
1 parent e0a2cf0 commit dd8c740Copy full SHA for dd8c740
1 file changed
be/config/packages/monolog.yaml
@@ -47,16 +47,16 @@ when@prod:
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
+ type: rotating_file
+ path: "%kernel.logs_dir%/%kernel.environment%.log"
52
level: debug
53
- formatter: monolog.formatter.json
+ max_files: 10
54
console:
55
type: console
56
process_psr_3_messages: false
57
channels: ["!event", "!doctrine"]
58
deprecation:
59
60
channels: [deprecation]
61
62
0 commit comments