fixed Log issue and add FileAppend feature