equal
deleted
inserted
replaced
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) |