Log listener is no longer added when logging is disabled.