Add background log write function
update README.md