添加logging