| org.slf4j.Marker
All known Subclasses: org.slf4j.helpers.BasicMarker,
Marker | public interface Marker extends Serializable(Code) | | Markers are named objects used to enrich log statements. Conforming
logging system Implementations of SLF4J determine how information
conveyed by markers are used, if at all. In particular, many
conforming logging systems ignore marker data.
Markers can contain child markers, which in turn can contain children
of their own.
author: Ceki Gülcü |
Method Summary | |
public void | add(Marker child) Add a child Marker to this Marker. | public boolean | contains(Marker other) Does this marker contain the 'other' marker? Marker A is defined to
contain marker B, if A == B or if B is a child of A. | public boolean | contains(String name) Does this marker contain the marker named 'name'?
If 'name' is null the returned value is always false.
Parameters: other - The marker to test for inclusion. | public String | getName() Get the name of this Marker. | public boolean | hasChildren() | public Iterator | iterator() Returns an Iterator which can be used to iterate over the
children of this marker. | public boolean | remove(Marker child) Remove a child Marker. |
ANY_MARKER | final public static String ANY_MARKER(Code) | | This constant represents any marker, including a null marker.
|
ANY_NON_NULL_MARKER | final public static String ANY_NON_NULL_MARKER(Code) | | This constant represents any non-null marker.
|
add | public void add(Marker child)(Code) | | Add a child Marker to this Marker.
Parameters: child - a child marker |
contains | public boolean contains(Marker other)(Code) | | Does this marker contain the 'other' marker? Marker A is defined to
contain marker B, if A == B or if B is a child of A.
Parameters: other - The marker to test for inclusion. throws: IllegalArgumentException - if 'other' is null Whether this marker contains the other marker. |
contains | public boolean contains(String name)(Code) | | Does this marker contain the marker named 'name'?
If 'name' is null the returned value is always false.
Parameters: other - The marker to test for inclusion. Whether this marker contains the other marker. |
getName | public String getName()(Code) | | Get the name of this Marker.
name of marker |
hasChildren | public boolean hasChildren()(Code) | | Does this marker have children?
true if this marker has children, false otherwise. |
iterator | public Iterator iterator()(Code) | | Returns an Iterator which can be used to iterate over the
children of this marker. An empty iterator is returned when this
marker has no children.
Iterator over the children of this marker |
remove | public boolean remove(Marker child)(Code) | | Remove a child Marker.
Parameters: child - the child Marker to remove true if child could be found and removed, false otherwise. |
|
|