java - log4j configuration change listener -


My application for some reasons, reconfigures in program 4 (in some circumstances), Custom Appenders are registered, Is lost just as someone manages the log4j configuration file manually. How to make sure our programmatic changes in log4j configuration are not lost? Or when notifications are received when log4j is being reconfigured?

The application runs on JBoss and the problem occurs when its $ JBOSS / server / default / conf / jboss-log4j Xml file has been edited, But I believe this problem is not exactly specific for JBoss AS. From time to time, Log4j API can ask if your custom advertisers are affiliated (

), and then attach again if necessary. It is full of revenge, but I do not know of any information system for this.

Comments