p.put(ITConfigAdminSupport.LOGBACK_FILE,absolutePath("test-osg-appender-ref-config.xml"));
config.update(p);
delay();
Logger ref = (Logger)LoggerFactory.getLogger("foo.ref.osgi");
assertTrue(ref.isDebugEnabled());
TestAppender ta = registerAppender("foo.bar", "foo.baz");
delay();
Logger bar = (Logger)LoggerFactory.getLogger("foo.bar");
bar.setLevel(Level.DEBUG);
Logger baz = (Logger)LoggerFactory.getLogger("foo.baz");
baz.setLevel(Level.INFO);
bar.debug("Test message");
baz.debug("Test message"); // Would not be logged
ref.debug("Test message ref");
// One event should be logged.
assertEquals(2, ta.events.size());