Reputation: 7133
In log4j-1, we required override close() method.
@Override public void close(){ ..... }
But that does not seem to be the case in log4j2.
Any thoughts on why this is so?
Upvotes: 1
Views: 495
Reputation: 36754
Log4j2's Appender interface extends Lifecycle which has a stop()
method that is called when the logging subsystem shuts down. This is where you would release any resources.
Upvotes: 1