GitHub user vy added a comment to the discussion: Java CRaC support on static defined Loggers
Judging from [how Spring Framework implements CRaC support](https://github.com/spring-projects/spring-framework/blob/22ecab5aab80eb09a3e099264fb4bece8f860558/spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java#L683), we can do something similar for Log4j. What I'm concerned about is the extent of such a work. That is, your example snippet only covers `RollingFileAppender` and `ConsoleAppender`, but we have more stateful components, and some in different modules. That is, either every (Maven) module needs to provide its own CRaC integration, or Log4j Core should integrate its life cycle management with `org.crac.Resource`. @david-ic3, would you be interested in contributing this feature? **P.S.** Porting this to `main` (targeting Log4j 3) will not be trivial either; it will need a separate module for CRaC integration. Though we can figure that out once Log4j 2 is completed. GitHub link: https://github.com/apache/logging-log4j2/discussions/3954#discussioncomment-14705750 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
