added logger inference from the apikey