|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SLF4JLogLevel>
com.googlecode.kevinarpe.papaya.logging.slf4j.SLF4JLogLevel
public enum SLF4JLogLevel
Represents all the well-known logging levels in SLF4J.
Create new loggers with this method: newLevelLogger(Logger)
SLF4JLevelLogger| Enum Constant Summary | |
|---|---|
DEBUG
All logging methods are sent to DEBUG level. |
|
ERROR
All logging methods are sent to ERROR level. |
|
INFO
All logging methods are sent to INFO level. |
|
OFF
Special case: Does not have an underlying logger and all methods do nothing. |
|
TRACE
All logging methods are sent to TRACE level. |
|
WARN
All logging methods are sent to WARN level. |
|
| Method Summary | |
|---|---|
abstract SLF4JLevelLogger |
newLevelLogger(org.slf4j.Logger logger)
Creates a new logger to only log at a single level. |
static SLF4JLogLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SLF4JLogLevel[] |
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 |
|---|
public static final SLF4JLogLevel OFF
public static final SLF4JLogLevel ERROR
Logger.error(String)public static final SLF4JLogLevel WARN
Logger.warn(String)public static final SLF4JLogLevel INFO
Logger.info(String)public static final SLF4JLogLevel DEBUG
Logger.debug(String)public static final SLF4JLogLevel TRACE
Logger.trace(String)| Method Detail |
|---|
public static SLF4JLogLevel[] values()
for (SLF4JLogLevel c : SLF4JLogLevel.values()) System.out.println(c);
public static SLF4JLogLevel valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic abstract SLF4JLevelLogger newLevelLogger(org.slf4j.Logger logger)
logger - underlying SLF4J logger
NullPointerException - if logger is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||