grab error messages from log file