@Test public void testMarker() { Logger logger = LoggerFactory.getLogger("testMarker"); IMarkerFactory markerFactory = new BasicMarkerFactory(); Marker blue = markerFactory.getMarker("BLUE"); logger.debug(blue, "hello"); logger.info(blue, "hello"); logger.warn(blue, "hello"); logger.error(blue, "hello"); logger.debug(blue, "hello {}", "world"); logger.info(blue, "hello {}", "world"); logger.warn(blue, "hello {}", "world"); logger.error(blue, "hello {}", "world"); logger.debug(blue, "hello {} and {} ", "world", "universe"); logger.info(blue, "hello {} and {} ", "world", "universe"); logger.warn(blue, "hello {} and {} ", "world", "universe"); logger.error(blue, "hello {} and {} ", "world", "universe"); }
/** * Currently this method always returns an instance of * {@link BasicMarkerFactory}. */ @Override public IMarkerFactory getMarkerFactory() { return markerFactory; }
/** * {@inheritDoc} */ @Override public IMarkerFactory getMarkerFactory() { return mMarkerFactory; }
@Override public IMarkerFactory getMarkerFactory() { return markerFactory; }
public IMarkerFactory getMarkerFactory() { return markerFactory; }
public IMarkerFactory getMarkerFactory() { return StaticLoggerBinder.getSingleton().factory.getMarkerFactory(); }
public IMarkerFactory getMarkerFactory() { // TODO support markers throw new UnsupportedOperationException(); }
/** * Currently this method always returns an instance of {@link BasicMarkerFactory}. */ @Override public IMarkerFactory getMarkerFactory() { return markerFactory; }
@Override public IMarkerFactory getMarkerFactory() { return myMarkerFactory; }
/** * Currently this method always returns an instance of * {@link BasicMarkerFactory}. */ public IMarkerFactory getMarkerFactory() { return markerFactory; }
/** * Return the instance of {@link IMarkerFactory} that * {@link org.slf4j.MarkerFactory} class should bind to. * * @return the instance of {@link IMarkerFactory} that * {@link org.slf4j.MarkerFactory} class should bind to. */ public IMarkerFactory getMarkerFactory();
/** * Currently this method always returns an instance of * {@link BasicMarkerFactory}. */ public IMarkerFactory getMarkerFactory() { throw new UnsupportedOperationException("This code should never make it into the jar"); }
/** * Currently this method always returns an instance of * {@link BasicMarkerFactory}. * * @return the marker factory */ public IMarkerFactory getMarkerFactory() { return markerFactory; }
/** * Currently this method always returns an instance of * {@link org.slf4j.helpers.BasicMarkerFactory}. */ public IMarkerFactory getMarkerFactory() { return markerFactory; }