Odoo Help


Odoo 8 - Logging features setup - WSGI - Apache2

Marino Buccolini
on 3/3/16, 5:57 AM 359 views

Hi All,

in a system that use the combination of WSGI and Apache2 to run Odoo8, we want to setup correctly those standard Odoo configuration features.

We add those rows into the openerp-wsgi.py

conf['logfile'] = '/var/log/odoo/odoo-server.log'

conf['log_level'] = 'info'

conf['logrotate'] = True

conf['log_handler'] = [':INFO']

Then we restart Apache2.

Odoo run but we cannot see any write activity into the /var/log/odoo/odoo-server.log defined above plus the logrotate not seems to be work.

This is the other extract of the virtual host that will trigger the WSGI script:


WSGIScriptAlias / /var/www/html/openerp-wsgi.py

WSGIDaemonProcess oe user=odoo group=odoo processes=2 python-path=/opt/odoo/odoo-server/ display-name=apache-openerp

WSGIProcessGroup oe

ErrorLog /var/log/odoo/odoo-error.log

CustomLog /var/log/odoo/odoo-access.log combined


Have someone know how to setup the above features in the apache2 - WSGI environment?

Have we miss something related to the configuration of the script or the Apache2 Virtual Host?

Thanks in advance.

Best regards.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/3/16, 5:57 AM
Seen: 359 times
Last updated: 3/3/16, 6:12 AM