Odoo Help

0

Odoo 8 - Logging features setup - WSGI - Apache2

By
Marino Buccolini
on 3/3/16, 5:57 AM 674 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.

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.

Register

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)

Stats

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