public enum LogLevel extends java.lang.Enum<LogLevel>
Each Class that wishes to log must call the Logger.get method with itself
as the only argument, or with an optional string value. This will return a new Logger
object.
To log something, the Calling class must call the desired level method
info, debug, warn, error, fatal with the message to be logged. If the
calling the err or fatal classes, a Throwable object must be passed as a second
argument. Calling the error method will only print the message and
error stack trace. However, calling the fatal method will print the
stack trace, and kill the program.
| Enum Constant and Description |
|---|
DEBUG
The debug.
|
ERROR
The error.
|
FATAL
The fatal.
|
INFO
The info.
|
SEVERE
The severe.
|
WARN
The warn.
|
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
m_name
The m_name.
|
| Modifier and Type | Method and Description |
|---|---|
static LogLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogLevel INFO
public static final LogLevel DEBUG
public static final LogLevel WARN
public static final LogLevel ERROR
public static final LogLevel SEVERE
public static final LogLevel FATAL
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static LogLevel valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null