|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.experlog.util.ESCategory
public class ESCategory
This object defines a list of log4j categories for all the different application. this object is used by the store via the MBean interface to modify and read the log level of an application.
Constructor Summary | |
---|---|
ESCategory()
|
Method Summary | |
---|---|
static org.apache.log4j.Category |
getCategory(java.lang.String cat)
returns a category to the caller object. |
static org.apache.log4j.Category |
getCategory(java.lang.String application,
java.lang.String cat)
returns a category to the caller object. |
static java.lang.String |
getLevel(java.lang.String application)
returns the level of the current application |
static java.lang.String |
getOutput(java.lang.String application)
|
static void |
setLevel(java.lang.String newLevel,
java.lang.String application)
sets the level of an application, the new level is available for all the categories for the current application. |
static void |
setOutput(java.lang.String output,
java.lang.String application)
sets the output channel for a given application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ESCategory()
Method Detail |
---|
public static void setLevel(java.lang.String newLevel, java.lang.String application)
newLevel
- the newLevel to set to categoriesapplication
- the concerned applicationpublic static java.lang.String getLevel(java.lang.String application)
application
- the application
public static void setOutput(java.lang.String output, java.lang.String application)
output
- the string representation of the output channelapplication
- the applicationpublic static java.lang.String getOutput(java.lang.String application)
public static org.apache.log4j.Category getCategory(java.lang.String application, java.lang.String cat)
application
- the name of the applicationcat
- the name of the category
public static org.apache.log4j.Category getCategory(java.lang.String cat)
cat
- the name of the category
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |