de.cesr.lara.components.util.logging.impl
Class LAgentLevel

java.lang.Object
  extended by Level
      extended by de.cesr.lara.components.util.logging.impl.LAgentLevel

public class LAgentLevel
extends Level

Custom Log4j Level that is supposed to be used for agent loggers (see Doc_AgentLogging.doc). By adjusting the priority it is possible to decide for which logging configuration agent loggers are instantiated.


Field Summary
static LAgentLevel AGENT
          An Log4J level used for agent loggers.
 
Constructor Summary
protected LAgentLevel(int level, String levelStr, int syslogEquivalent)
           
 
Method Summary
static LAgentLevel toLevel(int val, Level defaultLevel)
           
static LAgentLevel toLevel(String sArg, Level defaultLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AGENT

public static final LAgentLevel AGENT
An Log4J level used for agent loggers.

Constructor Detail

LAgentLevel

protected LAgentLevel(int level,
                      String levelStr,
                      int syslogEquivalent)
Parameters:
level -
levelStr -
syslogEquivalent -
Method Detail

toLevel

public static LAgentLevel toLevel(int val,
                                  Level defaultLevel)

toLevel

public static LAgentLevel toLevel(String sArg,
                                  Level defaultLevel)