pass logger itself