Implement log parsing

This is an early pull request, and is very much work in progress. Practically nothing here yet.

The primary objective here is to implement the following, in prioritized order:

- [ ] Resolving output file.
- [ ] Detecting errors.
- [ ] Detecting warnings.
- [ ] Linking errors and warnings to file and line number.