Create log dir automatically
init
ignore files.
commit.
bug exists, thread not exit correctly.