public class LogLevel extends Object
Defines available log levels.
Modifier and Type | Field and Description |
---|---|
static LogLevel |
Debug
The Debug level.
|
static LogLevel |
Error
The Error level.
|
static LogLevel |
Fatal
The Fatal level.
|
static LogLevel |
Information
The Info level.
|
static LogLevel |
Trace
The Trace level.
|
static LogLevel |
Warning
The Warn level.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Compares the level to the other
LogLevel object. |
static boolean |
op_GreaterThan(LogLevel l1,
LogLevel l2)
Compares two
LogLevel objects
and returns a value indicating whether
the first one is greater than the second one. |
static boolean |
op_GreaterThanOrEqual(LogLevel l1,
LogLevel l2)
Compares two
LogLevel objects
and returns a value indicating whether
the first one is greater than or equal to the second one. |
static boolean |
op_LessThan(LogLevel l1,
LogLevel l2)
Compares two
LogLevel objects
and returns a value indicating whether
the first one is less than the second one. |
static boolean |
op_LessThanOrEqual(LogLevel l1,
LogLevel l2)
Compares two
LogLevel objects
and returns a value indicating whether
the first one is less than or equal to the second one. |
String |
toString()
Returns a string representation of the log level.
|
public static final LogLevel Trace
The Trace level.
public static final LogLevel Debug
The Debug level.
public static final LogLevel Information
The Info level.
public static final LogLevel Warning
The Warn level.
public static final LogLevel Error
The Error level.
public static final LogLevel Fatal
The Fatal level.
public static boolean op_LessThanOrEqual(LogLevel l1, LogLevel l2)
Compares two LogLevel
objects
and returns a value indicating whether
the first one is less than or equal to the second one.
l1
- The first level.l2
- The second level.l1.Ordinal <= l2.Ordinal
public static boolean op_GreaterThanOrEqual(LogLevel l1, LogLevel l2)
Compares two LogLevel
objects
and returns a value indicating whether
the first one is greater than or equal to the second one.
l1
- The first level.l2
- The second level.l1.Ordinal >= l2.Ordinal
public static boolean op_LessThan(LogLevel l1, LogLevel l2)
Compares two LogLevel
objects
and returns a value indicating whether
the first one is less than the second one.
l1
- The first level.l2
- The second level.l1.Ordinal < l2.Ordinal
public static boolean op_GreaterThan(LogLevel l1, LogLevel l2)
Compares two LogLevel
objects
and returns a value indicating whether
the first one is greater than the second one.
l1
- The first level.l2
- The second level.l1.Ordinal > l2.Ordinal
public String toString()
Returns a string representation of the log level.
public final int compareTo(Object obj)
Compares the level to the other LogLevel
object.
obj
- the object objectOrdinal
(getOrdinal()
) is
less than the other logger's ordinal, 0 when they are equal and
greater than zero when this ordinal is greater than the
other ordinal.