org.slf4j.ext

Class XLogger.Level

public static class XLogger.Level extends Enum<XLogger.Level>

Field Summary
static XLogger.LevelDEBUG
static XLogger.LevelERROR
static XLogger.LevelINFO
static XLogger.LevelTRACE
static List<XLogger.Level>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
static XLogger.LevelWARN
Method Summary
List<XLogger.Level>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
intintValue()
StringtoString()
static XLogger.LevelvalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

DEBUG

public static final XLogger.Level DEBUG

ERROR

public static final XLogger.Level ERROR

INFO

public static final XLogger.Level INFO

TRACE

public static final XLogger.Level TRACE

VALUES

public static final List<XLogger.Level> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(Level c : Level.VALUES)
    System.out.println(c);

WARN

public static final XLogger.Level WARN

Method Detail

family

public final List<XLogger.Level> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

intValue

public int intValue()

toString

public String toString()

valueOf

public static final XLogger.Level valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.

Copyright © 2005-2010 QOS.ch. All Rights Reserved.