add log dir and git ignore file