public class Log4jMarkerFactory extends Object implements org.slf4j.IMarkerFactory
Constructor and Description |
---|
Log4jMarkerFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
detachMarker(String name)
Log4j does not support detached Markers.
|
boolean |
exists(String name)
Returns true if the Marker exists.
|
org.slf4j.Marker |
getDetachedMarker(String name)
Log4j does not support detached Markers for performance reasons.
|
org.slf4j.Marker |
getMarker(org.slf4j.Marker marker)
Returns a Log4j Marker converted from an existing custom SLF4J Marker.
|
org.slf4j.Marker |
getMarker(String name)
Returns a Log4j Marker that is compatible with SLF4J.
|
public org.slf4j.Marker getMarker(String name)
getMarker
in interface org.slf4j.IMarkerFactory
name
- The name of the Marker.public org.slf4j.Marker getMarker(org.slf4j.Marker marker)
marker
- The SLF4J Marker to convert.public boolean exists(String name)
exists
in interface org.slf4j.IMarkerFactory
name
- The Marker name.true
if the Marker exists, false
otherwise.public boolean detachMarker(String name)
detachMarker
in interface org.slf4j.IMarkerFactory
name
- The Marker name.false
public org.slf4j.Marker getDetachedMarker(String name)
getDetachedMarker
in interface org.slf4j.IMarkerFactory
name
- The Marker name.Copyright © 1999-2019 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.