Class: Log4Ruby::DateRollers
- Inherits:
-
Object
- Object
- Log4Ruby::DateRollers
- Defined in:
- lib/log4ruby/appenders/file_appender.rb
Constant Summary collapse
- HOURLY =
Proc.new { |file_time| Time.now.hour != file_time.hour }
- DAILY =
Proc.new { |file_time| Time.now.day != file_time.day }
- WEEKLY =
Proc.new { |file_time| DateTime.now.cweek != DateTime.parse(file_time.to_s).cweek }
- MONTHLY =
Proc.new { |file_time| Time.now.month > file_time.month }
- YEARLY =
Proc.new { |file_time| Time.now.year > file_time.year }