com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class LogLevel



  • public class LogLevel
    extends Object

    Defines available log levels.

    • Field Detail

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

    • Method Detail

      • op_LessThanOrEqual

        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:
        l1 - The first level.
        l2 - The second level.
        Returns:
        The value of l1.Ordinal <= l2.Ordinal
      • op_GreaterThanOrEqual

        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:
        l1 - The first level.
        l2 - The second level.
        Returns:
        The value of l1.Ordinal >= l2.Ordinal
      • op_LessThan

        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:
        l1 - The first level.
        l2 - The second level.
        Returns:
        The value of l1.Ordinal < l2.Ordinal
      • op_GreaterThan

        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:
        l1 - The first level.
        l2 - The second level.
        Returns:
        The value of l1.Ordinal > l2.Ordinal
      • toString

        public String toString()

        Returns a string representation of the log level.

        Overrides:
        toString in class Object
        Returns:
        Log level name.
      • compareTo

        public final int compareTo(Object obj)

        Compares the level to the other LogLevel object.

        Parameters:
        obj - the object object
        Returns:
        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.