public abstract class AbstractLogCategories extends Object implements ILogCategories
The only constructor LogCategories(Logger) is protected and is instantiated during the construction of AgentLogger.
| Constructor and Description |
|---|
AbstractLogCategories() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLogCategory(String name,
LogCategory category)
Used by
AbstractAgentLogger to slip itself into the map. |
Map<String,LogCategory> |
getCategories()
Returns IMMUTABLE mapping of cathegories names to instances of those log categories.
|
protected abstract Map<String,LogCategory> |
getCategoriesInternal() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCategoryprotected abstract Map<String,LogCategory> getCategoriesInternal()
public boolean hasCategory(String name)
hasCategory in interface ILogCategoriesname - public Map<String,LogCategory> getCategories()
You have to synchronize on it before iterating through it!
getCategories in interface ILogCategoriespublic void addLogCategory(String name, LogCategory category)
AbstractAgentLogger to slip itself into the map.addLogCategory in interface ILogCategoriesname - category - public String[] getCategoryNames()
getCategoryNames in interface ILogCategoriespublic String[] getCategoryNamesSorted()
getCategoryNamesSorted in interface ILogCategoriespublic void setLevel(Level newLevel)
setLevel in interface ILogCategoriesnewLevel - Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.