Test if exception logging is enabled in error listener