def METHOD_NAME(self, name, default=None):
    """
    Return Configuration value for the key specified as name argument.
    Function logs a message if configuration is not enabled or if there is an error retrieving a key.
    Args:
        name (str): Name of the key for which to return configuration value.
        default: default value tp return if key is not found in the configuration
    Returns:
        Configuration value for the given key or returns `None` if configuration is not enabled.
    """
    if self.enabled:
        try:
            return self.site_values.get(name, default)
        except AttributeError as error:
            logger.exception('Invalid JSON data. \n [%s]', error)
    else:
        logger.info("Site Configuration is not enabled for site (%s).", self.site)
    return default