Actions
Feature #10772
closedAdd ability to change rotated log file extention
Description
This patch allows a logger to be created that has a custom date format
to the rotated log files when shift_age is set, instead of the hardcoded
value ("%Y%m%d"), like so:
Logger.new('foo.log', 1024000, '%Y-%m-%d')
Making this format configurable allows users to adapt their logs to
rigid outside systems that might require strict formatting of file
names.
Updated by trevmex (Trevor Menagh) almost 10 years ago
See https://github.com/ruby/ruby/pull/818 for a solution.
Updated by sonots (Naotoshi Seo) over 8 years ago
- Status changed from Open to Closed
- Assignee set to sonots (Naotoshi Seo)
Actions
Like0
Like0Like0