Project

General

Profile

Actions

Feature #10772

closed

Add ability to change rotated log file extention

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

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

Also available in: Atom PDF

Like0
Like0Like0