docker
docker copied to clipboard
[14.0] Logs not accesible from docker log
Logs are sucesffully stored in /var/log/odoo/ but they cannot be seen with docker logs.
This nginx solution might be helpful:
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
@fizcris I'd like to share with you my own solution to this problem, that is log in both "docker log" and "file log".
By default, Odoo log goes only to "docker log". To also get "file log", just put the following line tinto entrypoint.sh:
# ...
# redirect stdout and stderr into file
exec &> >(tee "/var/log/odoo/odoo-entrypoint.log")
# ...
@fizcris it's funny, because my solution is opposite to yours :)
@fizcris can you confirm this with Odoo 17? If this issue is no longer needed please close.