Restructured logging to work globally. When finishing a run the whole run is parsed again for completeness.