As you may know Logger:Application has constants (Logger::DEBUG, Logger::WARN etc…)
My log level is a string in my config. Passing that string to my logger gives error. I’ll have to override the level method to accept a string.
log = Logger.new($CONFIG.log.file, $CONFIG.log.freq)
log.level = $CONFIG.log.level ## << Error
#log.level = Logger::WARN ## < manually settings it as example in doc.
how would you set the logging level dynamically?
Use
const_get:Be careful with your input though, as
Logger::Error&Logger::ERRORare not the same thing.