logging out the error report in several steps