net.sf.seam.perf4j
Enum SeamLoggerStopWatch.LoggingLevel
java.lang.Object
java.lang.Enum<SeamLoggerStopWatch.LoggingLevel>
net.sf.seam.perf4j.SeamLoggerStopWatch.LoggingLevel
- All Implemented Interfaces:
- Serializable, Comparable<SeamLoggerStopWatch.LoggingLevel>
- Enclosing class:
- SeamLoggerStopWatch
public static enum SeamLoggerStopWatch.LoggingLevel
- extends Enum<SeamLoggerStopWatch.LoggingLevel>
Levels (priorites) to log messages on.
FATAL
public static final SeamLoggerStopWatch.LoggingLevel FATAL
ERROR
public static final SeamLoggerStopWatch.LoggingLevel ERROR
WARN
public static final SeamLoggerStopWatch.LoggingLevel WARN
INFO
public static final SeamLoggerStopWatch.LoggingLevel INFO
DEBUG
public static final SeamLoggerStopWatch.LoggingLevel DEBUG
TRACE
public static final SeamLoggerStopWatch.LoggingLevel TRACE
values
public static SeamLoggerStopWatch.LoggingLevel[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SeamLoggerStopWatch.LoggingLevel c : SeamLoggerStopWatch.LoggingLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SeamLoggerStopWatch.LoggingLevel valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
safeValueOf
public static SeamLoggerStopWatch.LoggingLevel safeValueOf(String name,
SeamLoggerStopWatch.LoggingLevel defaultLevel)
- Safe version of valueOf(). Returns matching logging level enum or that given as parameter if none matches.
- Parameters:
name - name of loging level as StringdefaultLevel - logging level to be returned if none matches
- Returns:
- matching logging level enum or given default if none matches
Copyright © 2010. All Rights Reserved.