use of org.apache.logging.log4j.core.config.plugins.util.PluginManager in project x-pipe by ctripcorp.
the class LogTest method testPlugin.
@Test
public void testPlugin() {
PluginManager pm = new PluginManager(PatternConverter.CATEGORY);
pm.collectPlugins();
for (Entry<String, PluginType<?>> entry : pm.getPlugins().entrySet()) {
logger.info("{} : {}", entry.getKey(), entry.getValue());
}
logger.error("[testPlugin]", new IOException("io exception message..."));
}
Aggregations