Top Description Methods
org.slf4j

public Interface IMarkerFactory

Known Direct Implementers
org.slf4j.helpers.BasicMarkerFactory

Implementations of this interface are used to manufacture Marker instances.

See the section Implementing the SLF4J API in the FAQ for details on how to make your logging system conform to SLF4J.

Author
Ceki Gülcü

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

whether the marker could be detached or not
detachMarker
(String
The name of the marker to detach
name
)

Detach an existing marker.

public boolean

Returns:

true id the marker exists, false otherwise.
exists
(String
logger name to check for
name
)

Checks if the marker with the name already exists.

public Marker

Returns:

a dangling marker
getDetachedMarker
(String
marker name
name
)

Create a marker which is detached (even at birth) from this IMarkerFactory.

public Marker

Returns:

a Marker instance
getMarker
(String
the name of the marker to be created, null value is not allowed.
name
)

Manufacture a Marker instance by name.

Method Detail

detachMarkerback to summary
public boolean detachMarker(String name)

Detach an existing marker.

Note that after a marker is detached, there might still be "dangling" references to the detached marker.

Parameters
name:String

The name of the marker to detach

Returns:boolean

whether the marker could be detached or not

existsback to summary
public boolean exists(String name)

Checks if the marker with the name already exists. If name is null, then false is returned.

Parameters
name:String

logger name to check for

Returns:boolean

true id the marker exists, false otherwise.

getDetachedMarkerback to summary
public Marker getDetachedMarker(String name)

Create a marker which is detached (even at birth) from this IMarkerFactory.

Parameters
name:String

marker name

Returns:Marker

a dangling marker

Since
1.5.1
getMarkerback to summary
public Marker getMarker(String name)

Manufacture a Marker instance by name. If the instance has been created earlier, return the previously created instance.

Null name values are not allowed.

Parameters
name:String

the name of the marker to be created, null value is not allowed.

Returns:Marker

a Marker instance