Created a simple class for printing warnings/errors and writing them to
files