Parse TeX or LaTeX log file