add parse_log_for_error to filetools
Merge pull request #843 from stdweird/refactor_filetools

add parse_log_for_error to filetools