heat_map() takes loggin object as third argument, this is needed for debug logging when creatiing heat map plot.