|
Simple Log 2.0.1
[grlea] |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.grlea.log.DebugLevel
A Java enum defining all possible debug levels. There are seven levels, from "Fatal" (most important) to "Ludicrous" (most verbose).
Note that tracing is not related to the debug levels, as tracing is controlled independently.
Field Summary | |
static DebugLevel |
L1_FATAL
The "Fatal" level. |
static DebugLevel |
L2_ERROR
The "Error" level. |
static DebugLevel |
L3_WARN
The "Warning" level. |
static DebugLevel |
L4_INFO
The "Info" level. |
static DebugLevel |
L5_DEBUG
The "Debug" level. |
static DebugLevel |
L6_VERBOSE
The "Verbose" level. |
static DebugLevel |
L7_LUDICROUS
The "Ludicrous" level. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Returns true if the given object is a DebugLevel with the same level
value as this DebugLevel . |
static DebugLevel |
fromInt(int level)
Returns the DebugLevel object associated with the given level. |
int |
hashCode()
Returns this DebugLevel 's level. |
java.lang.String |
toString()
Returns a string representation of this object in its current state. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final DebugLevel L1_FATAL
public static final DebugLevel L2_ERROR
public static final DebugLevel L3_WARN
public static final DebugLevel L4_INFO
public static final DebugLevel L5_DEBUG
public static final DebugLevel L6_VERBOSE
public static final DebugLevel L7_LUDICROUS
Method Detail |
public static DebugLevel fromInt(int level)
DebugLevel
object associated with the given level. If the given level
is above or below the defined levels, the closest level will be returned.
level
- the level value whose corresponding DebugLevel
is to be returned.
DebugLevel
.public int hashCode()
DebugLevel
's level.
public boolean equals(java.lang.Object o)
true
if the given object is a DebugLevel
with the same level
value as this DebugLevel
.
public java.lang.String toString()
|
Copyright (c) 2004-2006, Graham Lea. All rights reserved. |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |