I'm currently writing a lifecycle bridge between Druid.io's logging and
log4j2's logging to make sure logs during normal shutdown hooks are
persisted correctly. I cannot rely on JVM shutdown hook firing order but
have a "functional" ShutdownCallbackRegistry.

Is there a preferred way to get the instanced ShutdownCallbackRegistry at
org.apache.logging.log4j.core.impl.Log4jContextFactory#shutdownCallbackRegistry
?

I have set a class via the log4j.shutdownCallbackRegistry property, but
cannot seem to actually get the instance used. This leaves me to either use
reflection https://github.com/druid-io/druid/pull/1387  or static methods
https://github.com/DjDCH/Log4j-StaticShutdown

Reply via email to