How can I check if LOG4J file appender is closed?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top