Project

General

Profile

Actions

Feature #10772

closed

Add ability to change rotated log file extention

Feature #10772: Add ability to change rotated log file extention

Added by trevmex (Trevor Menagh) over 11 years ago. Updated about 10 years ago.

Status:
Closed
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.

Updated by sonots (Naotoshi Seo) about 10 years ago Actions #2 [ruby-core:75021]

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

Also available in: PDF Atom