Changing cache_dir and log_dir with Symfony2

前端 未结 7 1686
星月不相逢
星月不相逢 2021-02-19 13:53

Because of deployment constraints, I would like to have the log and cache directories used by my Symfony2 application somewhere under /var/... in my file system. For this reason

7条回答
  •  不思量自难忘°
    2021-02-19 14:28

    I was happy to find your post, but I was a little bit confused of the unhelping answers.

    I got the same problem and found out that the logs are depending on the config parameter kernel.logs_dir.

    So I just added it to my config.yml parameters:

    kernel.logs_dir: /var/log/symfonyLogs
    

    I hope it will helpfull for you even, if its a late answer.

提交回复
热议问题