Project

General

Profile

Feature #10772

Add ability to change rotated log file extention

Added by trevmex (Trevor Menagh) over 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:67758]

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.

History

Updated by sonots (Naotoshi Seo) about 3 years ago

  • Status changed from Open to Closed
  • Assignee set to sonots (Naotoshi Seo)

Also available in: Atom PDF