pass logger as param