|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A LoggerManager
that supports the management of a logging hierarchy.
Field Summary | |
static String |
DEFAULT_FORMAT
The default logging format. |
static String |
DEFAULT_PRIORITY
The default logging priority value. |
static String |
DEFAULT_TARGET
The default logging target name. |
static String |
KEY
Standard context key for the logging manager. |
Method Summary | |
void |
addCategories(CategoriesDirective descriptor)
Add a set of category entries using the supplied categories descriptor. |
void |
addCategories(String path,
CategoriesDirective descriptor)
Add a set of category entries relative to the supplied base category path, using the supplied descriptor as the definition of subcategories. |
Logger |
getLoggerForCategory(CategoryDirective category)
Configure Logging channel based on the description supplied in a category descriptor. |
Logger |
getLoggerForCategory(String category)
Return the Logger for the specified category. |
Logger |
getLoggerForCategory(String name,
String target,
String priority)
Create a logging channel configured with the supplied category path, priority and target. |
Field Detail |
public static final String KEY
public static final String DEFAULT_PRIORITY
public static final String DEFAULT_TARGET
public static final String DEFAULT_FORMAT
Method Detail |
public void addCategories(CategoriesDirective descriptor)
descriptor
- a set of category descriptors to be added under the pathpublic void addCategories(String path, CategoriesDirective descriptor)
path
- the category base pathdescriptor
- a set of category descriptors to be added under
the base pathpublic Logger getLoggerForCategory(String name, String target, String priority) throws Exception
name
- logging category pathtarget
- the logging target to assign the channel topriority
- the priority level to assign to the channel
Exception
- if an error occurspublic Logger getLoggerForCategory(CategoryDirective category) throws Exception
category
- defintion of the channel category, priority and target
Exception
- if an error occurspublic Logger getLoggerForCategory(String category)
category
- the category path
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |