Log an azurearm cloud error exception

def log_cloud_error(client, message, **kwargs):
    '''
    Log an azurearm cloud error exception
    '''
    try:
        cloud_logger = getattr(log, kwargs.get('azurearm_log_level'))
    except (AttributeError, TypeError):
        cloud_logger = getattr(log, 'error')

    cloud_logger(
         'An AzureARM %s CloudError has occurred: %s',
         client.capitalize(),
         message
    )

    return