adding defaults for api_logger if none specified