I have downloaded an addon. Also added the path to its folder in odoo.conf
. The first time I did it I had no problems. But after turning down my computer I started the server again and it didn't work. (idk what happens with the docker compose for my odoo when I turn out computer, does it make docker-compose stop or down?)
I am doing: `docker exec -it bash`
And go to /var/log/odoo but found nothing related to this directory.
I am using ubuntu 20.04 and Odoo running in docker-
I really appreciate your answers.
@Jort When I put docker logs --tail 50 my-container it isnt showing anything.
@Alexander It seems that I don't have odoo-server.log on my docker.
Odoo's logging is managed by Python's standard library module logging. By default, log messages are written to stderr. So is Odoo configured to output log messages to a logfile?
You can run Odoo with either the --logfile option or provide the logfile setting in the configuration file, so log messages will be written to the specified file. For example:
[options]
; ...
logfile = /var/log/odoo/odoo-server.log
; ...
This setting causes Odoo to write log messages to /var/log/odoo/odoo-server.log. Remember that, due to the ephemeral nature of Docker containers, if you're running Odoo inside a Docker container and you want the logs to persist across restarts of the container, you should ensure that /var/log/odoo is a Docker volume or bind mount (see https://docs.docker.com/storage/).
Thank you Jort. Based on the path you gave me I looked for it in the odoo.conf and found : `logfile =etc/odoo/odoo-server.log` also, there is a file in my local computer that has the same values so there is no problem about persistance.
Thank you a lot, your blog helped me to understand too.