Logger::Period

module Logger::Period

Constants

SiD

Public Instance Methods

next_rotate_time(now, shift_age) Show source
# File lib/logger.rb, line 624
def next_rotate_time(now, shift_age)
  case shift_age
  when 'daily'
    t = Time.mktime(now.year, now.month, now.mday) + SiD
  when 'weekly'
    t = Time.mktime(now.year, now.month, now.mday) + SiD * (7 -