Change errorLog to a PrintWriter and add finish method
Change errorLog to a PrintWriter and add finish method

This collects all encountered errors. The finish method closes the
writer.

libris/librisxl,libris/librisxl,libris/librisxl