com.ibm.ejs.ras

Class RawTraceList.PatternLevel

  1. java.lang.Object
  2. extended bycom.ibm.ejs.ras.RawTraceList.PatternLevel
Direct known subclasses:
RawTraceList.PatternLevel
Enclosing class:
RawTraceList

  1. public static class RawTraceList.PatternLevel
  2. extends java.lang.Object
internal class that contains the logger name pattern and the minimum allowable logging level. Some special logic to avoid constructing or modifying an entry to become less restrictive

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
SPLIT_STRING
  1. static
  2. java.lang.String
WILDCARD_STRING

Constructor Summary

Constructor and Description
RawTraceList.PatternLevel(java.lang.String patternString)
constructor that takes a properties/like string with an equals sign
RawTraceList.PatternLevel(java.lang.String pattern,java.util.logging.Level level)
constructor with the typical logger name pattern and level

Method Summary

Modifier and Type Method and Description
  1. int
compareTo(RawTraceList.PatternLevel pl)
overRide of basic function which makes it simpler to add entries in sort order with logger name being in ascending order followed by level in descending order
  1. java.util.logging.Level
getLevel()
  1. java.lang.String
getLoggerName()
  1. java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

WILDCARD_STRING

  1. public static final java.lang.String WILDCARD_STRING
See Also:

SPLIT_STRING

  1. public static final java.lang.String SPLIT_STRING
See Also:

Constructor Detail

RawTraceList.PatternLevel

  1. public RawTraceList.PatternLevel( java.lang.String pattern,
  2. java.util.logging.Level level)
  3. throws com.ibm.ejs.ras.DuplicateKeyException
  4. java.lang.IllegalArgumentException
constructor with the typical logger name pattern and level
Parameters:
pattern - logger name pattern. Can end with *
level - Minimum level that this logger can be set to.
Throws:
com.ibm.ejs.ras.DuplicateKeyException
java.lang.IllegalArgumentException

RawTraceList.PatternLevel

  1. public RawTraceList.PatternLevel( java.lang.String patternString)
  2. throws com.ibm.ejs.ras.DuplicateKeyException
  3. java.lang.IllegalArgumentException
constructor that takes a properties/like string with an equals sign
Parameters:
patternString - properties-like string containing a loggerName pattern an equals sign and a level name
Throws:
com.ibm.ejs.ras.DuplicateKeyException
java.lang.IllegalArgumentException

Method Detail

compareTo

  1. public int compareTo(RawTraceList.PatternLevel pl)
overRide of basic function which makes it simpler to add entries in sort order with logger name being in ascending order followed by level in descending order
Parameters:
pl - entry to compare to
Returns:
0 if entries are =, -1 (<0) ifplsortshigher,+1(> 0) if pl sorts lower

getLevel

  1. public java.util.logging.Level getLevel( )

getLoggerName

  1. public java.lang.String getLoggerName( )

toString

  1. public java.lang.String toString( )
Overrides:
toString in class java.lang.Object