add save log function to 837I process