Enum LogLevel

java.lang.Object
java.lang.Enum<LogLevel>
uk.uuid.slf4j.android.LogLevel
All Implemented Interfaces:
Serializable, Comparable<LogLevel>

public enum LogLevel extends Enum<LogLevel>
Configuration of Android logging level. Levels are mapped to the corresponding SLF4J level (except ASSERT which does not exist in SLF4J).
  • Enum Constant Details

    • SUPPRESS

      public static final LogLevel SUPPRESS
      Suppress all log messages.
    • ERROR

      public static final LogLevel ERROR
      Log messages at ERROR level and above.
    • WARN

      public static final LogLevel WARN
      Log messages at WARN level and above.
    • INFO

      public static final LogLevel INFO
      Log messages at INFO level and above.
    • DEBUG

      public static final LogLevel DEBUG
      Log messages at DEBUG level and above.
    • VERBOSE

      public static final LogLevel VERBOSE
      Log messages at TRACE level and above.
    • NATIVE

      public static final LogLevel NATIVE
      Use Log.isLoggable(String, int) to determine the log level.
  • Method Details

    • values

      public static LogLevel[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LogLevel valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null