|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.composition.logging.impl.DefaultLoggingManager
A LoggerManager
interface declares operation supporting
the management of a logging hierarchy.
Field Summary |
Fields inherited from interface org.apache.avalon.composition.logging.LoggingManager |
DEFAULT_FORMAT, DEFAULT_PRIORITY, DEFAULT_TARGET, KEY |
Constructor Summary | |
DefaultLoggingManager(File base,
LoggingDescriptor descriptor)
Application of a runtime context to the manager. |
|
DefaultLoggingManager(File base,
LoggingDescriptor descriptor,
boolean debug)
Application of a runtime context to the manager. |
Method Summary | |
void |
addCategories(CategoriesDirective descriptor)
Add a set of category entries using the supplied categories descriptor. |
void |
addCategories(String root,
CategoriesDirective directive)
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultLoggingManager(File base, LoggingDescriptor descriptor) throws Exception
Application of a runtime context to the manager. The context value will be passed directly to lifestyle handlers established by this service.
base
- the directory for logging targetsdescriptor
- the logging system descriptor (may be null)public DefaultLoggingManager(File base, LoggingDescriptor descriptor, boolean debug) throws Exception
Application of a runtime context to the manager. The context value will be passed directly to lifestyle handlers established by this service.
base
- the directory for logging targetsdescriptor
- the logging system descriptor (may be null)debug
- a debug flagMethod Detail |
public void addCategories(CategoriesDirective descriptor)
addCategories
in interface LoggingManager
descriptor
- a set of category descriptors to be added under the pathpublic void addCategories(String root, CategoriesDirective directive)
addCategories
in interface LoggingManager
root
- the category base pathdirective
- a category directive to addpublic Logger getLoggerForCategory(String name, String target, String priority) throws Exception
getLoggerForCategory
in interface LoggingManager
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
getLoggerForCategory
in interface LoggingManager
category
- defintion of the channel category, priority and target
Exception
- if an error occurspublic Logger getLoggerForCategory(String category)
getLoggerForCategory
in interface LoggingManager
category
- the category path
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |