Skip to content

Commit 5149204

Browse files
committed
minor #1319 Use stderr for logging in prod (fabpot)
This PR was merged into the main branch. Discussion ---------- Use stderr for logging in prod Using stderr in prod by default is a good idea (we made the change in the official recipe a while ago -- https://github.com/symfony/recipes/blob/master/symfony/monolog-bundle/3.7/config/packages/monolog.yaml#L51) as it makes it work out of the box with anything compatible with Docker, including Platform.sh. Commits ------- 79d8d0d Use stderr for logging in prod
2 parents 5f97fa2 + 79d8d0d commit 5149204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/packages/prod/monolog.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ monolog:
88
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
99
nested:
1010
type: stream
11-
path: "%kernel.logs_dir%/%kernel.environment%.log"
11+
path: php://stderr
1212
level: debug
1313
formatter: monolog.formatter.json
1414
console:

0 commit comments

Comments
 (0)