Adding more logging levels.
Merge pull request #63 from johnb30/logging

Adding more logging levels.
Handle UTF errors with invalid bytes.
Merge pull request #64 from johnb30/utf

Handle UTF errors with invalid bytes.