Enum Class LogLevel
- All Implemented Interfaces:
Serializable
,Comparable<LogLevel>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDEBUG represents the debug level for logging purposes.The ERROR variable represents the severity level for logging errors.The FATAL constant represents the highest level of logging.The INFO variable is of type LogLevel and represents the logging level for information messages.This variable represents the tracing level to be used in the system.Represents a warning log level. -
Method Summary
-
Enum Constant Details
-
INFO
The INFO variable is of type LogLevel and represents the logging level for information messages. It has a corresponding mapping to the Level.INFO level defined in the java.util.logging.Level class.Example usage: INFO(Level.INFO)
The INFO variable should be used when logging information messages that are relevant for the normal flow of application execution. Information messages typically provide insights into the current state of the application or important events. These messages are less severe than warning or error messages, but still provide valuable information for debugging and monitoring purposes.
Note: The INFO variable is part of the LogLevel enum, which provides mappings to various logging levels, including INFO. Other levels in the enum include DEBUG, TRACE, WARNING, FATAL, and ERROR.
For more information on the different logging levels and how to use them effectively, refer to the java.util.logging package documentation.
-
DEBUG
DEBUG represents the debug level for logging purposes.The DEBUG variable is used to define the debug level for logging. It helps control the amount of information being logged for debugging purposes.
The value of the DEBUG variable is set using the Level enum class. The Level enum represents the severity levels for logging - from least severe to most severe, the levels are: - TRACE - DEBUG - INFO - WARN - ERROR
The default value for DEBUG is Level.INFO, which provides informational-level logging.
Example usage:
DEBUG(Level.DEBUG);
-
TRACE
This variable represents the tracing level to be used in the system.The TRACE level provides detailed information about the execution flow and state of the system. It can be used for debugging and troubleshooting purposes.
The possible values for the TRACE level are: - Level.OFF: No tracing information will be logged. - Level.SEVERE: Only severe tracing information will be logged. - Level.WARNING: Only warning and severe tracing information will be logged. - Level.INFO: Information, warning, and severe tracing information will be logged. - Level.CONFIG: Config, information, warning, and severe tracing information will be logged. - Level.FINE: Fine, config, information, warning, and severe tracing information will be logged. - Level.FINER: Finer, fine, config, information, warning, and severe tracing information will be logged. - Level.FINEST: Finest, Finer, fine, config, information, warning, and severe tracing information will be logged. - Level.ALL: All tracing information will be logged.
The default level is Level.INFO.
Example usage:
TRACE(Level.INFO)
-
WARNING
Represents a warning log level.The
WARNING
log level is used to indicate a potential issue or problem that may require attention but does not prevent the system from functioning properly.The
WARNING
log level is mapped to theLevel.WARNING
log level defined in the Java logging framework.- See Also:
-
FATAL
The FATAL constant represents the highest level of logging. It maps to the standard severe level defined in the java.util.logging.Level class. -
ERROR
The ERROR variable represents the severity level for logging errors.
-
-
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
-