public class MarkerFactory
extends java.lang.Object
Marker
instances as
appropriate for the logging system currently in use.
This class is essentially implemented as a wrapper around an
IMarkerFactory
instance bound at compile time.
Please note that all methods in this class are static.
Modifier and Type | Field and Description |
---|---|
(package private) static IMarkerFactory |
MARKER_FACTORY |
Modifier | Constructor and Description |
---|---|
private |
MarkerFactory() |
Modifier and Type | Method and Description |
---|---|
private static IMarkerFactory |
bwCompatibleGetMarkerFactoryFromBinder()
As of SLF4J version 1.7.14, StaticMarkerBinder classes shipping in various bindings
come with a getSingleton() method.
|
static Marker |
getDetachedMarker(java.lang.String name)
Create a marker which is detached (even at birth) from the MarkerFactory.
|
static IMarkerFactory |
getIMarkerFactory()
Return the
IMarkerFactory instance in use. |
static Marker |
getMarker(java.lang.String name)
Return a Marker instance as specified by the name parameter using the
previously bound
IMarkerFactory instance. |
static IMarkerFactory MARKER_FACTORY
private static IMarkerFactory bwCompatibleGetMarkerFactoryFromBinder() throws java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError
- in case no binding is availablepublic static Marker getMarker(java.lang.String name)
IMarkerFactory
instance.name
- The name of the Marker
object to return.public static Marker getDetachedMarker(java.lang.String name)
name
- the name of the markerpublic static IMarkerFactory getIMarkerFactory()
IMarkerFactory
instance in use.
The IMarkerFactory instance is usually bound with this class at compile time.