cwconfig.py
branchstable
changeset 5646 c9550c1239f0
parent 5640 8a6d14f4fb9d
child 5647 b21655cfc835
equal deleted inserted replaced
5644:73d8a757db80 5646:c9550c1239f0
   694         if sys.platform == 'win32':
   694         if sys.platform == 'win32':
   695             # no logrotate on win32, so use logging rotation facilities
   695             # no logrotate on win32, so use logging rotation facilities
   696             # for now, hard code weekly rotation every sunday, and 52 weeks kept
   696             # for now, hard code weekly rotation every sunday, and 52 weeks kept
   697             # idea: make this configurable?
   697             # idea: make this configurable?
   698             init_log(debug, syslog, logthreshold, logfile, self.log_format,
   698             init_log(debug, syslog, logthreshold, logfile, self.log_format,
   699                      rotation_parameters={'when': 'W7', # every sunday
   699                      rotation_parameters={'when': 'W6', # every sunday
   700                                           'interval': 1,
   700                                           'interval': 1,
   701                                           'backupCount': 52,                                          
   701                                           'backupCount': 52,                                          
   702                                          })
   702                                          })
   703         else:
   703         else:
   704             init_log(debug, syslog, logthreshold, logfile, self.log_format)
   704             init_log(debug, syslog, logthreshold, logfile, self.log_format)