Skip to content

Commit

Permalink
Write logs for production to webapp/var/log/prod.log instead of stderr.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickygerritsen committed Nov 25, 2023
1 parent bd87482 commit f5e00ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/config/packages/monolog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ when@prod:
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
nested:
type: stream
path: php://stderr
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
formatter: monolog.formatter.json
console:
type: console
process_psr_3_messages: false
Expand Down

0 comments on commit f5e00ba

Please sign in to comment.