updating console log to logger