Print stack traces

When catching an exception, the stack traces get printed also with
this version, not only the custom message.
Make LogLevel publicly available

To turn the logger off in tests, its attribute LogLevel must be
changable from outside the class.