use logger for output