net.sf.seam.perf4j
Enum SeamLoggerStopWatch.LoggingLevel

java.lang.Object
  extended by java.lang.Enum<SeamLoggerStopWatch.LoggingLevel>
      extended by 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.


Enum Constant Summary
DEBUG
           
ERROR
           
FATAL
           
INFO
           
TRACE
           
WARN
           
 
Method Summary
static SeamLoggerStopWatch.LoggingLevel safeValueOf(String name, SeamLoggerStopWatch.LoggingLevel defaultLevel)
          Safe version of valueOf().
static SeamLoggerStopWatch.LoggingLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SeamLoggerStopWatch.LoggingLevel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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 String
defaultLevel - logging level to be returned if none matches
Returns:
matching logging level enum or given default if none matches


Copyright © 2010. All Rights Reserved.