Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
In an ubuntu-server i've set log directory when openerp server start.
But I don't know when files are deleted and what append if a loop write in logs. how to manage maximum size of directory ?
I would not worry about the log size for OpenERP, it is really small compared to other stuff running in your linux server. Now, if you really worry about your log size, do this:
- rotate your logs. Chances are logrotate is being run daily in your Ubuntu box (http://manpages.ubuntu.com/manpages/jaunty/man8/logrotate.8.html)
- you can manually delete the older log files, or do it automatically with a Python or bash script. You can also move the older log files to a different server
Hope this helps,
You could take a look at : /etc/logrotate.conf and /etc/logrotate.d/postgresql-common
My advice will be to copy (as root) postgresql-common file like :
cp /etc/logrotate.d/postgresql-common /etc/logrotate.d/openerp
then edit the "/etc/logrotate.d/openerp" file (vi or other editor) and change the file name on the first line (replace "/var/log/postgresql/*.log" by "/var/log/openerp-server.log")
After this, depending the size of the openerp-server.log file, you could change from weekly to daily for the logrotate frequency within /etc/logrotate.d/openerp file.
Hope this will help you.
Have a nide day. @++ Nicolas
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
|Asked: 4/11/13, 12:52 PM|
|Seen: 5590 times|
|Last updated: 3/16/15, 8:10 AM|