Add support for setting log level and make most stacktraces use the LogHelper.