LogLevel

Contents
[ ]

Inheritance: java.lang.Object

public class LogLevel

Defines available log levels.

Fields

Field Description
Trace The Trace level.
Debug The Debug level.
Information The Info level.
Warning The Warn level.
Error The Error level.
Fatal The Fatal level.

Methods

Method Description
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.
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_GreaterThan(LogLevel l1, LogLevel l2) Compares two LogLevel objects and returns a value indicating whether the first one is greater than the second one.
toString() Returns a string representation of the log level.
compareTo(Object obj) Compares the level to the other LogLevel object.

Trace

public static final LogLevel Trace

The Trace level.

Debug

public static final LogLevel Debug

The Debug level.

Information

public static final LogLevel Information

The Info level.

Warning

public static final LogLevel Warning

The Warn level.

Error

public static final LogLevel Error

The Error level.

Fatal

public static final LogLevel Fatal

The Fatal level.

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 ```

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_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 ```

toString()

public String toString()

Returns a string representation of the log level.

Returns: java.lang.String - Log level name.

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) 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.