Odoo - 日志存档?

And*_*ius 6 logging openerp openerp-8 odoo

在旧版本中,日志归档是默认的,它会每天归档(mv旧日志到不同的日志文件)并保存一周左右的归档.现在在Odoo版本8上,它将所有内容放在一个日志文件中,一段时间后它会变得非常大.加载该文件甚至需要一些时间.有没有办法以某种方式获得旧功能?

我在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.
Run Code Online (Sandbox Code Playgroud)

这是我发现的关于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
Run Code Online (Sandbox Code Playgroud)

And*_*ius 4

看来logrotate参数按我需要的方式工作。起初我没有注意到,也许还没有过去整个24小时或者(需要一些时间来归档日志)。但现在我看到它每天都会归档日志。