Project

General

Profile

Actions

Feature #11695

closed

Support symbol and string for Logger#level=

Added by sonots (Naotoshi Seo) about 9 years ago. Updated about 9 years ago.

Status:
Closed
Target version:
-
[ruby-dev:49348]

Description

Added Logger#level=:symbol and Logger#level=string as we talked at https://twitter.com/frsyuki/status/664862229490089984.

This is useful especially when we configure log_level with yaml (typically, on rails application) like

settings.yml

log_level: DEBUG

and

 logger.level = Settings.log_level

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

Updated by nobu (Nobuyoshi Nakada) about 9 years ago

  • Status changed from Open to Assigned
  • Assignee changed from sonots (Naotoshi Seo) to nahi (Hiroshi Nakamura)

Updated by nobu (Nobuyoshi Nakada) about 9 years ago

  • Assignee changed from nahi (Hiroshi Nakamura) to sonots (Naotoshi Seo)

Sorry, I didn't read the tweets.
Please update doc/maintainers.rdoc too.

Updated by sonots (Naotoshi Seo) about 9 years ago

Committed as r52621

Updated by sonots (Naotoshi Seo) about 9 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0