com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class LogLevel

    • Field Detail

      • Trace

        public static LogLevel Trace

        The Trace level.

      • Debug

        public static LogLevel Debug

        The Debug level.

      • Information

        public static LogLevel Information

        The Info level.

      • Warning

        public static LogLevel Warning

        The Warn level.

      • Error

        public static LogLevel Error

        The Error level.

      • Fatal

        public static 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 int compareTo(Object obj)

        Compares the level to the other LogLevel object.

        Specified by:
        compareTo in interface Comparable
        Parameters:
        obj - the object object
        Returns:
        a value less than zero when this logger's Ordinal 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.