Odoo Help

Welcome!

This community 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.

0

Odoo 8 - Logging features setup - WSGI - Apache2

By
Marino Buccolini
on 3/3/16, 5:57 AM 307 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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