fix regex for matching errors and warnings

Currently errors and warnings in log are not matched by regex, because code part of the log can be multiline. This fix ensures it is matched, so errors are red and warnings orange.