Package com.applitools.eyes.logging
Enum Class TraceLevel
- All Implemented Interfaces:
Serializable,Comparable<TraceLevel>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDetailed implementation specific messages helpful for debugging (e.g., enter / exit function, etc.)Indicate an unexpected error conditions that result with a failure to complete an operation.Verbose log messages that are normally not loggedLog messages indicating key steps in a workflow (use as sparsely as possible).Indicate failures that can be overcome, are expected or are transient (e.g., bad user input, missing user input that can be replaced with a fallback, etc.) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisHigherThan(TraceLevel minLevel) Checks if this level is high enough for logging.static TraceLevelReturns the enum constant of this class with the specified name.static TraceLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Debug
Detailed implementation specific messages helpful for debugging (e.g., enter / exit function, etc.) -
Info
Verbose log messages that are normally not logged -
Notice
Log messages indicating key steps in a workflow (use as sparsely as possible). -
Warn
Indicate failures that can be overcome, are expected or are transient (e.g., bad user input, missing user input that can be replaced with a fallback, etc.) -
Error
Indicate an unexpected error conditions that result with a failure to complete an operation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isHigherThan
Checks if this level is high enough for logging.- Parameters:
minLevel- The minimum level required for logging.
-