Enum Class LogAlerts.FailLevel
- All Implemented Interfaces:
Serializable, Comparable<LogAlerts.FailLevel>, Constable
- Enclosing interface:
LogAlerts
What building LogConfig and starting Rainbow Gum do with alerts recorded while
starting, set by "logging.alerts.fail". Checked once when
LogConfig is built and once right after Rainbow Gum starts; alerts after
that never fail anything. Evicting or clearing an alert from the diagnostic queue
does not prevent it from failing startup.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LogAlerts.FailLevelReturns the enum constant of this class with the specified name.static LogAlerts.FailLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFF
Alerts never fail startup. -
CONFIG
Default. Fail if a warning or error alert about configuration is recorded while starting, such as a property key that was probably misspelled. Problems while logging, such as an appender failing to write, do not fail startup.- See Also:
-
ERROR
Fail if any error alert is recorded while starting. -
WARNING
Fail if any warning or error alert is recorded while starting.
-
-
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
-