Changed console.log to logger.log.