Setup log_file in odoo config file

2016年8月4日21:55:30 发表评论 1,174 views

1、build file name via the dictionary: /var/log/openerp/openerp-server.log

2、run the command to issue the file via write:  chown odoo  /var/log/openerp/openerp-server.log

3、edit the odoo configuration file at:  /etc/odoo/openerp-server.conf, add the following line to define the path route of the log file.

logfile=/var/log/odoo/openerp-server.log
log_handler=["[':INFO']"]
log_level=info

4、after this restart the odoo service via "systemctl restart odoo", the odoo error log file will start record the odoo system action and diary.

 

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: