Top Description Fields Constructors Methods
org.slf4j

public Class MarkerFactory

extends Object
Class Inheritance
Imports
org.slf4j.helpers.BasicMarkerFactory, .Reporter, .Util, org.slf4j.spi.SLF4JServiceProvider

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ü

Field Summary

Modifier and TypeField and Description
pack-priv static IMarkerFactory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Marker

Returns:

a dangling marker
getDetachedMarker
(String
the name of the marker
name
)

Create a marker which is detached (even at birth) from the MarkerFactory.

public static IMarkerFactory

Returns:

the IMarkerFactory instance in use
getIMarkerFactory
()

Return the IMarkerFactoryinstance in use.

public static Marker

Returns:

marker
getMarker
(String
The name of the Marker object to return.
name
)

Return a Marker instance as specified by the name parameter using the previously bound IMarkerFactoryinstance.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MARKER_FACTORYback to summary
pack-priv static IMarkerFactory MARKER_FACTORY

Constructor Detail

MarkerFactoryback to summary
private MarkerFactory()

Method Detail

getDetachedMarkerback to summary
public static Marker getDetachedMarker(String name)

Create a marker which is detached (even at birth) from the MarkerFactory.

Parameters
name:String

the name of the marker

Returns:Marker

a dangling marker

Since
1.5.1
getIMarkerFactoryback to summary
public static IMarkerFactory getIMarkerFactory()

Return the IMarkerFactoryinstance in use.

The IMarkerFactory instance is usually bound with this class at compile time.

Returns:IMarkerFactory

the IMarkerFactory instance in use

getMarkerback to summary
public static Marker getMarker(String name)

Return a Marker instance as specified by the name parameter using the previously bound IMarkerFactoryinstance.

Parameters
name:String

The name of the Marker object to return.

Returns:Marker

marker