you can't call the Logger.new(output).level = Logger::DEBUG.  It returns an integer value and not a logger object as you'd expect