Project

General

Profile

Actions

Feature #10772

closed

Add ability to change rotated log file extention

Added by trevmex (Trevor Menagh) almost 10 years ago. Updated over 8 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) over 8 years ago

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

Also available in: Atom PDF

Like0
Like0Like0