Home | History | Annotate | Download | only in logging

Lines Matching full:rollover

72         Output the record to the file, catering for rollover as described
94 values of maxBytes and backupCount to allow the file to rollover at
97 Rollover occurs whenever the current log file is nearly maxBytes in
108 If maxBytes is zero, rollover never occurs.
110 # If rotation/rollover is wanted, it doesn't make sense to use another
123 Do a rollover, as described in __init__().
146 Determine if rollover should occur.
165 If backupCount is > 0, when rollover is done, no more than backupCount
173 # Calculate the real rollover interval, which is just the number of
175 # a rollover occurs. Current 'when' events supported:
204 raise ValueError("You must specify a day for weekly rollover from 0 to 6 (0 is Monday): %s" % self.when)
206 raise ValueError("Invalid day specified for weekly rollover: %s" % self.when)
211 raise ValueError("Invalid rollover interval specified: %s" % self.when)
223 Work out the rollover time based on the specified time.
230 # have to fudge the rolloverAt value in order to trigger the first rollover
247 # the next rollover, but offset by 1 since we just calculated the time
249 # Case 1) The day to rollover is today; in this case, do nothing
250 # Case 2) The day to rollover is further in the interval (i.e., today is
251 # day 2 (Wednesday) and rollover is on day 6 (Sunday). Days to
252 # next rollover is simply 6 - 2 - 1, or 3.
253 # Case 3) The day to rollover is behind us in the interval (i.e., today
254 # is day 5 (Saturday) and rollover is on day 3 (Thursday).
255 # Days to rollover is 6 - 5 + 3, or 4. In this case, it's the
257 # of days in the next week until the rollover day (3).
273 if not dstNow: # DST kicks in before next rollover, so we need to deduct an hour
275 else: # DST bows out before next rollover, so we need to add an hour
283 Determine if rollover should occur.
291 #print "No need to rollover: %d, %d" % (t, self.rolloverAt)
319 do a rollover; in this case, a date/time stamp is appended to the filename
320 when the rollover happens. However, you want the file to be named for the
360 #If DST changes and midnight or weekly rollover, adjust for this.
364 if not dstNow: # DST kicks in before next rollover, so we need to deduct an hour
366 else: # DST bows out before next rollover, so we need to add an hour