class Geocoder::KernelLogger

def add(level, message)

def add(level, message)
  return unless log_message_at_level?(level)
  case level
    when ::Logger::DEBUG, ::Logger::INFO
      puts message
    when ::Logger::WARN
      warn message
    when ::Logger::ERROR
      raise message
    when ::Logger::FATAL
      fail message
  end
end

def log_message_at_level?(level)

def log_message_at_level?(level)
  level >= Geocoder.config.kernel_logger_level
end