Project

General

Profile

Actions

Feature #11696

closed

Logger#reopen

Added by sonots (Naotoshi Seo) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-dev:49355]

Description

Added Logger#reopenas we talked at https://twitter.com/frsyuki/status/664862229490089984.

This enables to reopen another log file (or same log file) without creating a new Logger instance. This is useful when an application is passing a logger instance everywhere inside it, but want to change log file as https://github.com/fluent/serverengine does on config reloading.

The patch is available at https://github.com/ruby/ruby/pull/1102.

Actions

Also available in: Atom PDF