@PreDestroy
    void destroy() {
        LogCapture.get().resetLogging();
    }
Entry point for capturing logs and exceptions via servlet
integration-tests/jakarta-ee/src/main/java/org/apache/shiro/testing/logcapture/LogCaptureSingleton.java