P
P
Pavel Dudenkov2016-04-19 19:04:31
Java
Pavel Dudenkov, 2016-04-19 19:04:31

Logback appender - how to define behavior before destruction?

Good evening comrades.
I have a class: public class DatabaseAppender extends AppenderBase
I need to make sure that code is 100% executed before an instance of this class is destroyed, something like close() for streams.
Maybe someone knows the options? Google hasn't helped yet.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question