Enhanced the logger

Enhanced the logger.