문제

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