class Geocoder::Logger

def log(level, message)

def log(level, message)
  unless valid_level?(level)
    raise StandardError, "Geocoder tried to log a message with an invalid log level."
  end
  if current_logger.respond_to? :add
    current_logger.add(SEVERITY[level], message)
  else
    raise Geocoder::ConfigurationError, "Please specify valid logger for Geocoder. " +
    "Logger specified must be :kernel or must respond to `add(level, message)`."
  end
  nil
end