org.objectweb.jotm.btp.util
Class SOAPCategory

java.lang.Object
  |
  +--org.objectweb.jotm.btp.util.SOAPCategory

public class SOAPCategory
extends Object

This object defines a list of log4j categories for all the different application.


Constructor Summary
SOAPCategory()
           
 
Method Summary
static org.apache.log4j.Category getCategory(String cat)
          returns a category to the caller object.
static org.apache.log4j.Category getCategory(String application, String cat)
          returns a category to the caller object.
static String getLevel(String application)
          returns the level of the current application
static String getOutput(String application)
           
static void setLevel(String newLevel, String application)
          sets the level of an application, the new level is available for all the categories for the current application.
static void setOutput(String output, 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

SOAPCategory

public SOAPCategory()
Method Detail

setLevel

public static void setLevel(String newLevel,
                            String application)
sets the level of an application, the new level is available for all the categories for the current application.

Parameters:
newLevel - the newLevel to set to categories
application - the concerned application

getLevel

public static String getLevel(String application)
returns the level of the current application

Parameters:
application - the application
Returns:
the string representation of the application level.

setOutput

public static void setOutput(String output,
                             String application)
sets the output channel for a given application.

Parameters:
output - the string representation of the output channel
application - the application

getOutput

public static String getOutput(String application)

getCategory

public static org.apache.log4j.Category getCategory(String application,
                                                    String cat)
returns a category to the caller object.

Parameters:
application - the name of the application
cat - the name of the category
Returns:
an existing or a new category.

getCategory

public static org.apache.log4j.Category getCategory(String cat)
returns a category to the caller object.

Parameters:
cat - the name of the category
Returns:
an existing or a new category.