UIMAFramework.getLogger().setLevel(org.apache.uima.util.Level.INFO);
try {
UimaContextAdmin ctx = new RootUimaContext_impl();
ctx.setLogger(JSR47Logger_impl.getInstance());
ExtendedLogger logger = new ExtendedLogger(ctx);
logger.setLevel(org.apache.uima.util.Level.ALL);
trigger(logger);
logger.setLevel(org.apache.uima.util.Level.OFF);
trigger(logger);
assertEquals(10, records.size());
assertEquals(Level.FINER, records.get(0).getLevel());
assertEquals(Level.FINER, records.get(1).getLevel());