add logger for output