ARTEMIS-2475 log metrics plugin init details

This commit is contained in:
Justin Bertram 2019-09-08 10:05:12 -05:00 committed by Clebert Suconic
parent 9002bc533f
commit c5376789b0
2 changed files with 5 additions and 0 deletions

View File

@ -793,6 +793,7 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
}
});
ActiveMQServerLogger.LOGGER.initializingMetricsPlugin(clazz, properties.toString());
config.setMetricsPlugin(metricsPlugin.init(properties));
return metricsPlugin;

View File

@ -434,6 +434,10 @@ public interface ActiveMQServerLogger extends BasicLogger {
@Message(id = 221081, value = "There is no address with ID {0}, deleting record {1}", format = Message.Format.MESSAGE_FORMAT)
void infoNoAddressWithID(Long id, Long record);
@LogMessage(level = Logger.Level.INFO)
@Message(id = 221082, value = "Initializing metrics plugin {0} with properties: {1}", format = Message.Format.MESSAGE_FORMAT)
void initializingMetricsPlugin(String clazz, String properties);
@LogMessage(level = Logger.Level.WARN)
@Message(id = 222000, value = "ActiveMQServer is being finalized and has not been stopped. Please remember to stop the server before letting it go out of scope",
format = Message.Format.MESSAGE_FORMAT)