Browse Source

save logs to file

main
ghost 10 months ago
parent
commit
04eeac5844
  1. 4
      config/packages/monolog.yaml

4
config/packages/monolog.yaml

@ -48,7 +48,7 @@ when@prod: @@ -48,7 +48,7 @@ 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:
@ -58,4 +58,4 @@ when@prod: @@ -58,4 +58,4 @@ when@prod:
deprecation:
type: stream
channels: [deprecation]
path: php://stderr
path: "%kernel.logs_dir%/%kernel.environment%.log"

Loading…
Cancel
Save