[Logger]Fix the bugs