Improve parsing of error log files