Odoo log archiving?

In older versions, log archiving was the default, and every day it archived (mv an older log to a different log file) and kept the archives for a week or so. Now on Odoo version 8 it puts everything in one log file, and after a while it becomes very large. It will take some time to download this file. Is there a way to get old functions in some way?

I have these lines in the Odoo configuration file:

logfile = home/myuser/var/log/openerp/openerp-server.log logrotate = True ;it seems to not do anything or I dont see what it does. 

This is what I found to enter the Odoo configuration file (v7 only, so I don’t know how important this is for 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 
+6
source share
1 answer

The logrotate parameter seems to work as I need. At first I did not notice this, maybe not all 24 hours have passed or (some time it was necessary to archive the journal). But now I see that he archives the magazines daily.

+4
source

Source: https://habr.com/ru/post/975519/


All Articles