public void start(BundleContext context) throws Exception {
String config = System.getProperty(Log4jService.LOG4JSERVICE_CONFIG_PROPERTY);
if (config != null) {
ConfigurationAdmin configAdmin = getService(context, ConfigurationAdmin.class);
if (configAdmin != null) {
ServerInfo serverInfo = getService(context, ServerInfo.class);
Configuration configuration = configAdmin.getConfiguration("org.ops4j.pax.logging");
service = new OSGiLog4jService(config, 60, serverInfo, configuration);
service.start();
context.registerService(SystemLog.class.getName(), service, null);