Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
20000 มุมมอง

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 ?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello,

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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:

Hope this helps,

อวตาร
ละทิ้ง

I am trying to delete the log file, coz it is 18 GB, How do we delete the log file

Related Posts ตอบกลับ มุมมอง กิจกรรม
More Detailed Odoo Logs? แก้ไขแล้ว
5
ก.ค. 24
38589
Setup log file in odoo config file แก้ไขแล้ว
4
ต.ค. 22
90936
0
ธ.ค. 17
4408
1
ก.ค. 24
6855
1
ธ.ค. 23
2337