com.bea.logging
Class LogPriority

java.lang.Object
  extended by Level
      extended by com.bea.logging.LogPriority

public class LogPriority
extends Level

Class LogPriority extends org.apache.log4j.Priority for the purpose of wrapping the underlying implementation, and adding the value AUDIT to the default set of priorities


Field Summary
static int AUDIT_INT
           
 
Constructor Summary
protected LogPriority(int level, String strLevel, int syslogEquivalent)
          Constructor for the LogPriority class.
 
Method Summary
static Level intToLevel(int i)
           
static Priority intToPriority(int i)
          Converts an integer into a Priority.
static Priority strToPriority(String sArg)
          Converts a String into a Priority.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUDIT_INT

public static final int AUDIT_INT
See Also:
Constant Field Values
Constructor Detail

LogPriority

protected LogPriority(int level,
                      String strLevel,
                      int syslogEquivalent)
Constructor for the LogPriority class.

Parameters:
value - Should be one of the priority constants.
Method Detail

strToPriority

public static Priority strToPriority(String sArg)
Converts a String into a Priority. This method is used internally in configuration files.

If the argument is not one of "DEBUG", "INFO", ..., "EMERG" then the the default value Priority.DEBUG is returned by the call to the superclass' method.


intToPriority

public static Priority intToPriority(int i)
                              throws IllegalArgumentException
Converts an integer into a Priority.

If the argument is not one of the static ints above, then the the default value #DEBUG_INT is returned by the call to the superclass' method.

Throws:
IllegalArgumentException

intToLevel

public static Level intToLevel(int i)
                        throws IllegalArgumentException
Throws:
IllegalArgumentException