LruList events = new LruList(size);
Hashtable<String, Object> props = new Hashtable<String, Object>();
props.put("org.ops4j.pax.logging.appender.name", "VmLogAppender");
register(PaxAppender.class, events, props);
LogEventFormatterImpl formatter = new LogEventFormatterImpl();
formatter.setPattern(pattern);
formatter.setFatalColor(fatalColor);
formatter.setErrorColor(errorColor);
formatter.setWarnColor(warnColor);
formatter.setInfoColor(infoColor);
formatter.setDebugColor(debugColor);
formatter.setTraceColor(traceColor);
register(LogEventFormatter.class, formatter);
LogServiceImpl logService = new LogServiceImpl(configurationAdmin, events);
register(LogService.class, logService);