Enum TreeLogger.Type

java.lang.Object
java.lang.Enum<TreeLogger.Type>
com.google.gwt.core.ext.TreeLogger.Type
All Implemented Interfaces:
Serializable, Comparable<TreeLogger.Type>, java.lang.constant.Constable
Enclosing class:
TreeLogger

public static enum TreeLogger.Type extends Enum<TreeLogger.Type>
A type-safe enum of all possible logging severity types.
  • Enum Constant Details

    • ERROR

      public static final TreeLogger.Type ERROR
      Logs an error.
    • WARN

      public static final TreeLogger.Type WARN
      Logs a warning.
    • INFO

      public static final TreeLogger.Type INFO
      Logs information.
    • TRACE

      public static final TreeLogger.Type TRACE
      Logs information related to lower-level operation.
    • DEBUG

      public static final TreeLogger.Type DEBUG
      Logs detailed information that could be useful during debugging.
    • SPAM

      public static final TreeLogger.Type SPAM
      Logs extremely verbose and detailed information that is typically useful only to product implementors.
    • ALL

      public static final TreeLogger.Type ALL
      Logs everything -- quite a bit of stuff.
  • Method Details

    • values

      public static TreeLogger.Type[] 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 TreeLogger.Type 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
    • instances

      public static TreeLogger.Type[] instances()
      Gets all the possible severity types as an array.
      Returns:
      an array of severity types
    • getLabel

      public String getLabel()
      Gets the label for this severity type.
      Returns:
      the label
    • isLowerPriorityThan

      public boolean isLowerPriorityThan(TreeLogger.Type other)
      Determines whether this log type is of lower priority than some other log type.
      Parameters:
      other - the other log type
      Returns:
      true if this log type is lower priority
    • needsAttention

      public boolean needsAttention()
      Indicates whether this severity type represents a high severity that should be highlighted for the user.
      Returns:
      true if this severity is high, otherwise false.