How to check if LOG4J file appender is closed?

560 Views Asked by At

How can I check if LOG4J file appender is closed?

1

There are 1 best solutions below

1
On BEST ANSWER

You can check the property closed on the specific appender. Since closed is a protected field, you may need to set it visible before accessing using java reflection.