# How to enable logging to a file

**URL:** https://discuss.tryton.org/t/how-to-enable-logging-to-a-file/2311
**Category:** Developer
**Created:** [February 8, 2020, 4:04pm UTC](https://discuss.tryton.org/t/how-to-enable-logging-to-a-file/2311 "2020-02-08T16:04:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ratatouille](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/57b2e6/32.png) [@ratatouille](https://discuss.tryton.org/u/ratatouille)
#### Post date: [February 8, 2020, 4:04pm UTC](https://discuss.tryton.org/t/how-to-enable-logging-to-a-file/2311/1 "2020-02-08T16:04:48Z")

</div>

Hello!

How do I enable logging to a file? I read about “Logging configuration” in the documentation and added a section [logconf] in trytond.conf like described in the doc but I am not sure, I get no log.  
Should I paste my trytond.conf?

Andreas

---

<div class="post-metadata">

### Author: ![bala4901](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@bala4901](https://discuss.tryton.org/u/bala4901)
#### Post date: [February 8, 2020, 4:11pm UTC](https://discuss.tryton.org/t/how-to-enable-logging-to-a-file/2311/2 "2020-02-08T16:11:25Z")

</div>

you need to another config, let called it “trytond.log.conf”  
then input the example [configuration](http://docs.tryton.org/projects/server/en/latest/topics/logs.html#example)

Run the trytond as below:

trytond -d dbname -c /etc/trytond/trytond.conf --logconf /etc/trytond/trytond.log.conf

---

<div class="post-metadata">

### Author: ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)
#### Post date: [February 8, 2020, 4:17pm UTC](https://discuss.tryton.org/t/how-to-enable-logging-to-a-file/2311/3 "2020-02-08T16:17:29Z")

</div>

Also make sure the user (who started trytond) who writes to the file has the right permissions.
