|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.util.log.LogLevel
public final class LogLevel
Definition of logging levels for Cargo's logs. A WARN level means only warnings are logged. An INFO level means warnings and infos are logged. A DEBUG level means warnings, info and debug messages are logged.
Note: There's no ERROR log level as all errors result in an exception being raised.
Field Summary | |
---|---|
static LogLevel |
DEBUG
Represents a debug logging level. |
static LogLevel |
INFO
Represents an info logging level. |
static LogLevel |
WARN
Represents a warning logging level. |
Method Summary | |
---|---|
int |
compareTo(Object object)
|
boolean |
equals(Object object)
|
String |
getLevel()
|
int |
hashCode()
|
static LogLevel |
toLevel(String levelAsString)
Transform a log level represented as a string into a LogLevel object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final LogLevel WARN
public static final LogLevel INFO
public static final LogLevel DEBUG
Method Detail |
---|
public static LogLevel toLevel(String levelAsString)
LogLevel
object.
levelAsString
- the string to transform
LogLevel
objectpublic boolean equals(Object object)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public int compareTo(Object object)
compareTo
in interface Comparable
Comparable.compareTo(Object)
public String getLevel()
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |