|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILogCategories
Method Summary | |
---|---|
void |
addLogCategory(java.lang.String name,
LogCategory category)
Adds log category from outside of the object. |
java.util.Map<java.lang.String,LogCategory> |
getCategories()
Returns IMMUTABLE mapping of categories names to instances of those log categories. |
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. |
java.lang.String[] |
getCategoryNamesSorted()
Returns names of all existing log categories sorted alphabetically. |
boolean |
hasCategory(java.lang.String name)
Whether some category with specified name exists. |
void |
setLevel(java.util.logging.Level newLevel)
Set level for all handlers of all categories. |
Method Detail |
---|
boolean hasCategory(java.lang.String name)
name
-
java.util.Map<java.lang.String,LogCategory> getCategories()
It does not contain instance of IAgentLogger
.
void addLogCategory(java.lang.String name, LogCategory category)
name
- category
- java.lang.String[] getCategoryNames()
java.lang.String[] getCategoryNamesSorted()
LogCategory getCategory(java.lang.String name)
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
name
-
void setLevel(java.util.logging.Level newLevel)
newLevel
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |