ignore directory test
add function read log info from file