Stripping the error message.
Adding severity parameter to logging to pass it along
Stripping newlines out of log messages so the logs are easy to parse/grok
Improved logging by reporting the class, method, and line number rather than
filename and line number, because a filename like '__init__.py' is much less
than useful.

Adding log_* methods for convenience.