method
check_shift_log
v1_8_7_72 -
Show latest stable
- Class:
Logger::LogDevice
check_shift_log()private
No documentation available.
# File lib/logger.rb, line 539
def check_shift_log
if @shift_age.is_a?(Integer)
# Note: always returns false if '0'.
if @filename && (@shift_age > 0) && (@dev.stat.size > @shift_size)
shift_log_age
end
else
now = Time.now
if @dev.stat.mtime <= previous_period_end(now)
shift_log_period(now)
end
end
end