/** * Return a Marker instance as specified by the name parameter using the * previously bound {@link IMarkerFactory}instance. * * @param name * The name of the {@link Marker} object to return. * @return marker */ public static Marker getMarker(String name) { return MARKER_FACTORY.getMarker(name); }
/** * Create a marker which is detached (even at birth) from the MarkerFactory. * * @param name the name of the marker * @return a dangling marker * @since 1.5.1 */ public static Marker getDetachedMarker(String name) { return MARKER_FACTORY.getDetachedMarker(name); }
public void shutdown() { MarkerFactory.getIMarkerFactory() .detachMarker(m_threadMarker.getName()); m_shutdown = true; }
@Override public void setCurrentRunNumber(int run) { if (m_runMarker != null) { m_threadMarker.remove(m_runMarker); MarkerFactory.getIMarkerFactory().detachMarker( m_runMarker.getName()); } if (run != -1) { m_runMarker = MarkerFactory.getMarker("run-" + run); m_threadMarker.add(m_runMarker); } m_runNumber = run; }
/** * Return a Marker instance as specified by the name parameter using the * previously bound {@link IMarkerFactory}instance. * * @param name * The name of the {@link Marker} object to return. * @return marker */ public static Marker getMarker(String name) { return MARKER_FACTORY.getMarker(name); }
/** * Create a marker which is detached (even at birth) from the MarkerFactory. * * @param name the name of the marker * @return a dangling marker * @since 1.5.1 */ public static Marker getDetachedMarker(String name) { return MARKER_FACTORY.getDetachedMarker(name); }
public void shutdown() { MarkerFactory.getIMarkerFactory().detachMarker(m_threadMarker.getName()); m_shutdown = true; }
@Override public Iterator<Marker> iterator() { final org.apache.logging.log4j.Marker[] log4jParents = this.marker.getParents(); final List<Marker> parents = new ArrayList<>(log4jParents.length); for (final org.apache.logging.log4j.Marker m : log4jParents) { parents.add(factory.getMarker(m.getName())); } return parents.iterator(); }
/** * Create a marker which is detached (even at birth) from the MarkerFactory. * * @param name the name of the marker * @return a dangling marker * @since 1.5.1 */ public static Marker getDetachedMarker(String name) { return markerFactory.getDetachedMarker(name); }
@Override public void setCurrentRunNumber(int run) { if (m_runMarker != null) { m_threadMarker.remove(m_runMarker); MarkerFactory.getIMarkerFactory().detachMarker(m_runMarker.getName()); } if (run != -1) { m_runMarker = MarkerFactory.getMarker("run-" + run); m_threadMarker.add(m_runMarker); } m_runNumber = run; }
@Override public void add(final Marker marker) { if (marker == null) { throw new IllegalArgumentException(); } final Marker m = factory.getMarker(marker.getName()); this.marker.addParents(((Log4jMarker)m).getLog4jMarker()); }
/** * Create a marker which is detached (even at birth) from the MarkerFactory. * * @param name the name of the marker * @return a dangling marker * @since 1.5.1 */ public static Marker getDetachedMarker(String name) { return MARKER_FACTORY.getDetachedMarker(name); }
/** * Return a Marker instance as specified by the name parameter using the * previously bound {@link IMarkerFactory}instance. * * @param name * The name of the {@link Marker} object to return. * @return marker */ public static Marker getMarker(String name) { return markerFactory.getMarker(name); }
/** * Create a marker which is detached (even at birth) from the MarkerFactory. * * @param name the name of the marker * @return a dangling marker * @since 1.5.1 */ public static Marker getDetachedMarker(String name) { return markerFactory.getDetachedMarker(name); }
/** * Return a Marker instance as specified by the name parameter using the * previously bound {@link IMarkerFactory}instance. * * @param name * The name of the {@link Marker} object to return. * @return marker */ public static Marker getMarker(String name) { return MARKER_FACTORY.getMarker(name); }
/** * Create a marker which is detached (even at birth) from the MarkerFactory. * * @param name the name of the marker * @return a dangling marker * @since 1.5.1 */ public static Marker getDetachedMarker(String name) { return MARKER_FACTORY.getDetachedMarker(name); }
/** * Return a Marker instance as specified by the name parameter using the * previously bound {@link IMarkerFactory}instance. * * @param name * The name of the {@link Marker} object to return. * @return marker */ public static Marker getMarker(String name) { return markerFactory.getMarker(name); }
/** * Create a marker which is detached (even at birth) from the MarkerFactory. * * @param name the name of the marker * @return a dangling marker * @since 1.5.1 */ public static Marker getDetachedMarker(String name) { return MARKER_FACTORY.getDetachedMarker(name); }
/** * Return a Marker instance as specified by the name parameter using the * previously bound {@link IMarkerFactory}instance. * * @param name * The name of the {@link Marker} object to return. * @return marker */ public static Marker getMarker(String name) { return MARKER_FACTORY.getMarker(name); }