LogLevel
Inheritance: java.lang.Object
public class LogLevel
Defines available log levels.
Fields
Field | Description |
---|---|
Debug | The Debug level. |
Error | The Error level. |
Fatal | The Fatal level. |
Information | The Info level. |
Trace | The Trace level. |
Warning | The Warn level. |
Methods
Method | Description |
---|---|
compareTo(Object obj) | Compares the level to the other LogLevel object. |
equals(Object arg0) | |
getClass() | |
hashCode() | |
notify() | |
notifyAll() | |
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. |
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. |
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. |
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. |
toString() | Returns a string representation of the log level. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
Debug
public static final LogLevel Debug
The Debug level.
Error
public static final LogLevel Error
The Error level.
Fatal
public static final LogLevel Fatal
The Fatal level.
Information
public static final LogLevel Information
The Info level.
Trace
public static final LogLevel Trace
The Trace level.
Warning
public static final LogLevel Warning
The Warn level.
compareTo(Object obj)
public final int compareTo(Object obj)
Compares the level to the other LogLevel object.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | the object object |
Returns: int - a value less than zero when this logger’s Ordinal (#getOrdinal.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.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
op_GreaterThan(LogLevel l1, LogLevel l2)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
l1 | LogLevel | The first level. |
l2 | LogLevel | The second level. |
Returns: boolean - The value of l1.Ordinal > l2.Ordinal
op_GreaterThanOrEqual(LogLevel l1, LogLevel l2)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
l1 | LogLevel | The first level. |
l2 | LogLevel | The second level. |
Returns: boolean - The value of l1.Ordinal >= l2.Ordinal
op_LessThan(LogLevel l1, LogLevel l2)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
l1 | LogLevel | The first level. |
l2 | LogLevel | The second level. |
Returns: boolean - The value of l1.Ordinal < l2.Ordinal
op_LessThanOrEqual(LogLevel l1, LogLevel l2)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
l1 | LogLevel | The first level. |
l2 | LogLevel | The second level. |
Returns: boolean - The value of l1.Ordinal <= l2.Ordinal
toString()
public String toString()
Returns a string representation of the log level.
Returns: java.lang.String - Log level name.
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |