Configurable error reporting level and improved event listeners