|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.utils.logging.AbstractLogCategories cz.cuni.amis.pogamut.base.utils.logging.jmx.LogCategoriesJMXProxy
public class LogCategoriesJMXProxy
Constructor Summary | |
---|---|
LogCategoriesJMXProxy(javax.management.MBeanServerConnection mbsc,
javax.management.ObjectName parentName)
|
Method Summary | |
---|---|
protected java.util.Map<java.lang.String,LogCategory> |
getCategoriesInternal()
|
LogCategory |
getCategory(java.lang.String name)
Returns existing category by the name or adds new one. |
java.lang.String[] |
getCategoryNames()
Returns names of all existing log categories. |
Methods inherited from class cz.cuni.amis.pogamut.base.utils.logging.AbstractLogCategories |
---|
addLogCategory, getCategories, getCategoryNamesSorted, hasCategory, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogCategoriesJMXProxy(javax.management.MBeanServerConnection mbsc, javax.management.ObjectName parentName) throws PogamutJMXException
PogamutJMXException
Method Detail |
---|
protected java.util.Map<java.lang.String,LogCategory> getCategoriesInternal()
getCategoriesInternal
in class AbstractLogCategories
public LogCategory getCategory(java.lang.String name)
ILogCategories
Note that new category doesn't have any handler appended, you have to create at least one for the category to produce something.
Example:
LogCategory myCategory = categories.getCategory("my log"); // create new category
myCategory.newHandler(new LogPublisher.ConsolePublisher()); // add new handler with output to the console
public java.lang.String[] getCategoryNames()
AbstractLogCategories
getCategoryNames
in interface ILogCategories
getCategoryNames
in class AbstractLogCategories
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |