jakob@odoo12_dev_server:~$ ls -la /var/log/odoo/
total 3190776
drwxr-x--- 2 odoo odoo 4096 Sep 22 08:28 .
drwxrwxr-x 17 root syslog 4096 Sep 23 06:25 ..
-rw-r--r-- 1 odoo odoo 1680052229 Sep 23 06:49 odoo-server.log
-rw-r--r-- 1 odoo odoo 911469798 Sep 13 06:25 odoo-server.log.2
-rw-r--r-- 1 odoo odoo 675748979 Sep 6 06:25 odoo-server.log.3
jakob@odoo12_dev_server:~$ sudo rm -rf /var/log/odoo/odoo-server.log.2
jakob@odoo12_dev_server:~$ sudo rm -rf /var/log/odoo/odoo-server.log.3
This is a developer server. I've deleted these logs (all but one) and don't notice any difference.
These logs seems to pile up disk space...
What's the purpose of these logs and is it possible to stop this log service?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
The logs are used to track the error/issue. If you really want to stop the logs, you can remove/comment the log file path in the odoo config file and restart the odoo service.
# Comment followng line from the odoo conf file
logfile = /var/log/odoo/odoo-server.log
Hi,
Keeping log will be good for tracking issues. If the piling disk space are the issue, try to configure the log rotate so that the logs before a period will get automatically deleted from the system, which will not consume disk space then.
See: https://www.odoo.com/forum/help-1/question/i-want-odoo-not-to-delete-previously-generated-log-files-even-after-a-week-by-using-logrotate-in-configuration-file-162577
Thanks
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
4
thg 6 24
|
11758 | ||
|
0
thg 5 24
|
1291 | ||
|
2
thg 8 23
|
3487 | ||
Saas Server Logs
Đã xử lý
|
|
1
thg 5 23
|
6362 | |
|
2
thg 11 18
|
9745 |