|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.composition.data.CategoryDirective
A logging category descriptor hierachy. The descriptor contains a category name, a optional priority value, and an optional target. If the priority or target values null, the resulting value will be derived from the parent category desciptor. A category descriptor may 0-n subsidiary categories. CategoryDirective names are relative. For example, the category "orb" will appear as "my-app.orb" if the parent category name is "my-app".
XML
<categories priority="INFO"> <category priority="DEBUG" name="loader" /> <category priority="WARN" name="types" /> <category priority="ERROR" name="types.builder" target="default"/> <category name="profiles" /> <category name="lifecycle" /> <category name="verifier" /> </categories>
Field Summary | |
static String |
DEBUG
Constant category priority value for debug mode. |
static String |
ERROR
Constant category priority value for error mode. |
static String |
INFO
Constant category priority value for info mode. |
static String |
WARN
Constant category priority value for warning mode. |
Constructor Summary | |
CategoryDirective(String name)
Creation of a new CategoryDirective using a supplied name. |
|
CategoryDirective(String name,
String priority)
Creation of a new CategoryDirective using a supplied name and priority. |
|
CategoryDirective(String name,
String priority,
String target)
Creation of a new CategoryDirective using a supplied name, priority, target and collection of subsidiary categories. |
Method Summary | |
boolean |
equals(Object other)
|
String |
getName()
Return the category name. |
String |
getPriority()
Return the logging priority for the category. |
String |
getTarget()
Return the default log target for the category. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DEBUG
public static final String INFO
public static final String WARN
public static final String ERROR
Constructor Detail |
public CategoryDirective(String name)
name
- the category namepublic CategoryDirective(String name, String priority)
name
- the category namepriority
- the category priority - DEBUG, INFO, WARN, or ERRORpublic CategoryDirective(String name, String priority, String target)
name
- the category namepriority
- the category priority - DEBUG, INFO, WARN, or ERRORtarget
- the name of a logging category targetMethod Detail |
public String getName()
public String getPriority()
public String getTarget()
public boolean equals(Object other)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |