I'm using Logger through config and this line:

configatron.log.level = Logger::Warn

gives me the error:

`<top (required)>': uninitialized constant Logger::Warn (NameError)

Even if I require 'logger' at the top.

what gives?

< Ruby N00B >

有帮助吗?

解决方案

Capitalization matters. It should be Logger::WARN.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top