|
SLF4J 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Field Summary | |
static java.lang.String |
ANY_MARKER
This constant represents any marker, including a null marker. |
static java.lang.String |
ANY_NON_NULL_MARKER
This constant represents any non-null marker. |
Method Summary | |
void |
add(Marker child)
Add a child Marker to this Marker. |
boolean |
contains(Marker other)
Does this marker contain the 'other' marker? |
boolean |
contains(java.lang.String name)
Does this marker contain the marker named 'name'? |
java.lang.String |
getName()
Get the name of this Marker. |
boolean |
hasChildren()
Does this marker have children? |
java.util.Iterator |
iterator()
Returns an Iterator which can be used to iterate over the children of this marker. |
boolean |
remove(Marker child)
Remove a child Marker. |
Field Detail |
public static final java.lang.String ANY_MARKER
public static final java.lang.String ANY_NON_NULL_MARKER
Method Detail |
public java.lang.String getName()
public void add(Marker child)
child
- a child markerpublic boolean remove(Marker child)
child
- the child Marker to remove
public boolean hasChildren()
public java.util.Iterator iterator()
public boolean contains(Marker other)
other
- The marker to test for inclusion.
java.lang.IllegalArgumentException
- if 'other' is nullpublic boolean contains(java.lang.String name)
|
Copyright 2004-2006 SLF4J.ORG, QOS.ch | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |