Search code examples
shopware6

How can I change the log directory?


By default, the logging directory in Shopware6 is var/log.

How can I change it to something different like /var/log/shopware6 without creating a symlink?


Solution

  • That directory is a Symfony default. You can change it by setting an environment variable APP_LOG_DIR with an absolute path to a writable directory e.g. in you .env file.