/** * Copyright (c) 2012 - 2018 Data In Motion Consulting. * All rights reserved. * * This program and the accompanying materials are made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Data In Motion Consulting - initial API and implementation */ package org.gecko.runtime.logging; import org.osgi.framework.BundleEvent; import org.osgi.framework.BundleListener; /** * Log bridge to configure certain systems to use our slf4j/logback logging * @author Mark Hoffmann * @since 07.11.2017 */ public class LoggingConfigurator implements BundleListener { /* * (non-Javadoc) * @see org.osgi.framework.BundleListener#bundleChanged(org.osgi.framework.BundleEvent) */ @Override public void bundleChanged(BundleEvent event) { // if (event.getType() == BundleEvent.STARTED || event.getType() == BundleEvent.STARTING) { // try{ // event.getBundle().loadClass("org.eclipse.jetty.util.log"); // if (!(Log.getLog() instanceof Slf4jLog)) { // Log.setLog(new Slf4jLog("org.eclipse.jetty")); // } // } catch ( ClassNotFoundException e) { // // How else can we check? // } // } } }