Package org.slf4j
Class MarkerFactory
- java.lang.Object
-
- org.slf4j.MarkerFactory
-
public class MarkerFactory extends java.lang.ObjectMarkerFactory is a utility class producingMarkerinstances as appropriate for the logging system currently in use.This class is essentially implemented as a wrapper around an
IMarkerFactoryinstance bound at compile time.Please note that all methods in this class are static.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MarkergetDetachedMarker(java.lang.String name)Create a marker which is detached (even at birth) from the MarkerFactory.static IMarkerFactorygetIMarkerFactory()Return theIMarkerFactoryinstance in use.static MarkergetMarker(java.lang.String name)Return a Marker instance as specified by the name parameter using the previously boundIMarkerFactoryinstance.
-
-
-
Method Detail
-
getMarker
public static Marker getMarker(java.lang.String name)
Return a Marker instance as specified by the name parameter using the previously boundIMarkerFactoryinstance.- Parameters:
name- The name of theMarkerobject to return.- Returns:
- marker
-
getDetachedMarker
public static Marker getDetachedMarker(java.lang.String name)
Create a marker which is detached (even at birth) from the MarkerFactory.- Parameters:
name- the name of the marker- Returns:
- a dangling marker
- Since:
- 1.5.1
-
getIMarkerFactory
public static IMarkerFactory getIMarkerFactory()
Return theIMarkerFactoryinstance in use.The IMarkerFactory instance is usually bound with this class at compile time.
- Returns:
- the IMarkerFactory instance in use
-
-