Enum Class Level
- All Implemented Interfaces:
Serializable, Comparable<Level>, Constable
Represents the different levels of logging severity that can be used in the application.
These levels help categorize and prioritize log entries based on their importance
and the nature of the information being logged.
Available levels:
INFORMATION- General information about system operationsWARNING- Indication of a potential issue or cautionary noticeERROR- An error that impacts the current operation, but the system can continueFATAL_ERROR- A critical error that may cause the system to terminateDEBUG- Detailed information useful for debugging purposes
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents log messages that are intended to be output to the console.Represents debug-level information used for development and troubleshooting purposes.Represents an error that causes an operation to fail, but the system continues running.Represents a severe error that affects the system's ability to continue operating.General information about the operation of the system, used for non-critical log messages.Represents trace-level information that provides detailed insights into the application's execution flow.Represents a warning that indicates a potential issue in the system, but does not stop its operation. -
Method Summary
-
Enum Constant Details
-
INFORMATION
General information about the operation of the system, used for non-critical log messages. -
WARNING
Represents a warning that indicates a potential issue in the system, but does not stop its operation. -
ERROR
Represents an error that causes an operation to fail, but the system continues running. -
FATAL_ERROR
Represents a severe error that affects the system's ability to continue operating. This level is used for critical issues. -
DEBUG
Represents debug-level information used for development and troubleshooting purposes. -
TRACE
Represents trace-level information that provides detailed insights into the application's execution flow. This level is typically used for very fine-grained logging, such as method entry and exit points, variable values, and other detailed information that can help trace the execution of the application. -
CONSOLE
Represents log messages that are intended to be output to the console. This level is used for messages that should be visible in the console output, regardless of the configured log file targets.
-
-
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
-