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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0