Changing cache_dir and log_dir with Symfony2

前端 未结 7 1997
感动是毒
感动是毒 2021-02-19 13:50

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:30

    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.

提交回复
热议问题