Description
I'm trying to gracefully close my SocketAppender before exiting the my application to avoid IOExceptions on the socket server side.
Currently I can make it only by using interface the org.apache.logging.log4j.core.Lifecycle interface in the Log4j2 core :
((Lifecycle) LogManager.getContext()).stop();
I would prefer to have a cleaner solution that uses solely the Log4j-api not Log4j-core.
Did I overlook something or stop() on the API side really missing ?