public static class RawTraceList.PatternLevel extends RawTraceList.PatternLevel
PatternLevel
is the class of objects stored in the RawTraceList. They consist of a logger name
pattern (which can end in asterisk (*)) and a level which represents the minimum level at which that logger
can log.SPLIT_STRING, WILDCARD_STRING
Constructor and Description |
---|
RawTraceList.PatternLevel(java.lang.String patternString)
construct a
PatternLevel object with a patternString of the form: loggerNamePattern=level such as
com.mycompany.app1. |
RawTraceList.PatternLevel(java.lang.String loggerNamePattern,
java.util.logging.Level minimumLevel)
construct a
PatternLevel object with a logger name pattern and a level |
compareTo, getLevel, getLoggerName, toString
public RawTraceList.PatternLevel(java.lang.String loggerNamePattern, java.util.logging.Level minimumLevel) throws com.ibm.ejs.ras.DuplicateKeyException, java.lang.IllegalArgumentException
PatternLevel
object with a logger name pattern and a levelloggerNamePattern
- pattern that will match a logger name exactly, or end in an asterisk (*) and thus match
all loggers that begin with that nameminimumLevel
- lowest level at which the logger can log. Any attempt to change the loggers level mentioned here, this
level will be rejectedcom.ibm.ejs.ras.DuplicateKeyException
- this loggerNamePattern is already in the listjava.lang.IllegalArgumentException
- the args are not allowablepublic RawTraceList.PatternLevel(java.lang.String patternString) throws com.ibm.ejs.ras.DuplicateKeyException, java.lang.IllegalArgumentException
PatternLevel
object with a patternString of the form: loggerNamePattern=level such as
com.mycompany.app1.*=finepatternString
- pattern that will parse around the = to a logger name pattern and a levelcom.ibm.ejs.ras.DuplicateKeyException
- this loggerNamePattern is already in the listjava.lang.IllegalArgumentException
- the args are not allowable