added logger for logic