Added a basic logger class.
This will be used to keep record of caught error messages