|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

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