add save log to file feature