You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we have our log4j configuration in a file called log4j-custom.properties. We load this on embedded tomcat startup using -Dlog4j.configuration=log4j-custom.properties.
This has the effect that those properties will be loaded first on startup. However, startup then continues to find log4j.properties and basic-log4j.properties in the spring-boot jar, which set the log4j.rootCategory (should be rootLogger by now I believe), meaning also our Appenders get closed.
I have no clear suggestion of how to prevent this right now, nor do I know whether this is a bug or not, but it took us by surprise.