err,log,file encode finished