Use given logger correctly