6
在較早的版本中,日誌歸檔是默認的,它會每天歸檔(mv較早的日誌到不同的日誌文件)並將歸檔保存一週左右。現在在Odoo第8版上,它將所有內容放在一個日誌文件中,並在一段時間後變得非常大。它甚至需要一些時間來加載該文件。有沒有辦法以某種方式獲得舊功能?Odoo - 日誌歸檔?
我在Odoo配置文件中的這些行:
logfile = home/myuser/var/log/openerp/openerp-server.log
logrotate = True ;it seems to not do anything or I dont see what it does.
這是我發現用來記錄Odoo配置文件(僅適用於V7,所以不知道有多少是相關的V8):
# file where the server log will be stored
logfile = None
# do not rotate the logfile
logrotate = True
# Send the log to the syslog server
syslog = False
# setup a handler at LEVEL for a given PREFIX. An empty PREFIX indicates the root logger. This option can be repeated. Example: "openerp.orm:DEBUG" or "werkzeug:CRITICAL" (default: ":INFO")
log_handler = [':INFO']
# specify the level of the logging. Accepted values: info, debug_rpc, warn, test, critical, debug_sql, error, debug, debug_rpc_answer, notset
log_level = info