script/traffic_replay: apply new logger to replace print