use logger if avalailable only