public class LogLevel extends Object implements Comparable
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 LogLevel Trace
The Trace level.
public static LogLevel Debug
The Debug level.
public static LogLevel Information
The Info level.
public static LogLevel Warning
The Warn level.
public static LogLevel Error
The Error level.
public static 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 int compareTo(Object obj)
Compares the level to the other LogLevel
object.
compareTo
in interface Comparable
obj
- the object objectOrdinal
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.Copyright (c) 2008-2017 Aspose Pty Ltd. All Rights Reserved.