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