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

Setup log file in odoo config file

By
Omar OUHARI
on 1/28/15, 11:37 AM 10,405 views

 

I correctly set the log file in odoo config file but i got nothing in the log file.
I dont know why.
this is lines that i put in config file :

...........
 logfile = /var/log/openerp/openerp-server.log
log_level = info

I also execute this commandes line:

bash#mkdir -p /var/log/openerp/
bash#touch /var/log/openerp/openerp-server.log
bash#chown openerp /var/log/openerp/openerp-server.log
bash#chmod 644 /var/log/openerp/openerp-server.log

Any help !!!!!!

0

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 1/28/15, 12:56 PM

In V8 user=odoo, try this:

chown odoo  /var/log/openerp/openerp-server.log

and you add (or other handler):

log_handler = ["[':INFO']"]

0
Omar OUHARI
On 1/29/15, 7:17 AM


I do this but still not working

ls -l commande send this information:

[user@localhost openerp ] # ls -l

-rw-r--r--. 1 odoo root 0 Jan 28 15:25 openerp-server.log

and ther is my odoo config:

[options]
; This is the password that allows database operations:
admin_password=#####
db_host=localhost
db_port=5432
db_user=######
db_password=#######
addons_path=/usr/lib/python2.7/site-packages/openerp-8.0_c7d8e97-py2.7.egg/openerp/addons/
logfile=/var/log/openerp/openerp-server.log
log_handler=["[':INFO']"]
log_level=info

 

and whene i execute systemctl status openerp.service i got that

.................

python /usr/local/bin/openerp-server -c /etc/openerp-server.conf --pid=/run/openerp/openerp-server.pid --syslog

...................

Any help please !!!!!

 

you drop --syslog and posibbly add --logfile /var/log/openerp/openerp-server.log

zbik
on 1/29/15, 7:34 AM

how can i do that

CAYLEY CONSULTING, Omar OUHARI
on 1/29/15, 7:55 AM

I do not know what your system and install method, probably in /etc/init.d/odoo

zbik
on 1/29/15, 8:58 AM

done thanks for help.

CAYLEY CONSULTING, Omar OUHARI
on 1/29/15, 10:12 AM

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: 1/28/15, 11:37 AM
Seen: 10405 times
Last updated: 3/16/15, 8:10 AM