|
Project Information
Members
Featured
Downloads
Links
|
Short descriptionJMX bean which provides the functionality to change the log level of a class/package and to reload the log4j.properties during runtime. IntroductionI was facing the problem to change log4j.properties settings of classes/categories during runtime of an application. Additionally i wanted to have also the possibility to reset/reload the settings again like they was before. After studying log4j documentation i couldn't find only a half solution materialized as an jmx bean (http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/jmx/package-summary.html). After deeper google search for this issue, i found several hints how to solve this issue, which i would like to combine here. DetailsRequirements
FunctionalityAll functionalities are grouped in the interface http://code.google.com/p/logging-jmx-service/source/browse/trunk/logjmxservice/src/main/java/de/stefanheintz/log/jmxservice/LoggingConfig.java of the JMX MBean http://code.google.com/p/logging-jmx-service/source/browse/trunk/logjmxservice/src/main/java/de/stefanheintz/log/jmxservice/LoggingConfigImpl.java:
Short demonstration: More details are available at the Tutorial page. Version history
References
|