# Logging in SW6 with APP\_ENV=production

**URL:** <https://forum.shopware.com/t/logging-in-sw6-with-app-env-production/91909>\
**Category:** Programming (EN)\
**Created:** [10. Dezember 2021 um 08:30 UTC](https://forum.shopware.com/t/logging-in-sw6-with-app-env-production/91909 "2021-12-10T08:30:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![comwerft](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/comwerft/32/27812_2.png) [@comwerft](https://forum.shopware.com/u/comwerft)\
**Post date:** [10. Dezember 2021 um 08:30 UTC](https://forum.shopware.com/t/logging-in-sw6-with-app-env-production/91909/1 "2021-12-10T08:30:41Z")

</div>

I have question about logging in shopware/symfony.

If I use APP\_ENV=production in .env, config-files from config/packages/production will be used like shopware.yaml, framework.yaml and so on.

But with this scenario there is no logging file in var/log as with APP\_ENV=dev oder APP\_ENV=prod

How can I enable logging?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [10. Dezember 2021 um 08:53 UTC](https://forum.shopware.com/t/logging-in-sw6-with-app-env-production/91909/2 "2021-12-10T08:53:01Z")

</div>

prod is production.

You should not use APP\_ENV=production, use APP\_ENV=prod
