com.github.marschall.equinox.jboss.logging.EquinoxLoggerProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.github.marschall.equinox-jboss-logging Show documentation
Show all versions of com.github.marschall.equinox-jboss-logging Show documentation
A JBoss Logging implementation using the Equinox ExtendedLogService.
The newest version!
package com.github.marschall.equinox.jboss.logging;
import java.util.ArrayDeque;
import java.util.Collections;
import java.util.Deque;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.equinox.log.ExtendedLogService;
import org.jboss.logging.Logger;
import org.jboss.logging.LoggerProvider;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleEvent;
import org.osgi.framework.BundleException;
import org.osgi.framework.FrameworkUtil;
import org.osgi.util.tracker.ServiceTracker;
/**
* A {@link LoggerProvider} that brides to {@link ExtendedLogService}.
*/
public final class EquinoxLoggerProvider implements LoggerProvider {
private final ThreadLocal> ndcStack = new ThreadLocal<>();
private final ThreadLocal