Package org.slf4j
Class MarkerFactory
java.lang.Object
org.slf4j.MarkerFactory
MarkerFactory is a utility class producing
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.
- Author:
- Ceki Gülcü
-
Method Summary
Modifier and TypeMethodDescriptionstatic Marker
getDetachedMarker
(String name) Create a marker which is detached (even at birth) from the MarkerFactory.static IMarkerFactory
Return theIMarkerFactory
instance in use.static Marker
Return a Marker instance as specified by the name parameter using the previously boundIMarkerFactory
instance.
-
Method Details
-
getMarker
Return a Marker instance as specified by the name parameter using the previously boundIMarkerFactory
instance.- Parameters:
name
- The name of theMarker
object to return.- Returns:
- marker
-
getDetachedMarker
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
Return theIMarkerFactory
instance in use.The IMarkerFactory instance is usually bound with this class at compile time.
- Returns:
- the IMarkerFactory instance in use
-