Added logging features

I added a feature that will log swagger issues if there is an issue with
the generation.