Enum Class Level

java.lang.Object
java.lang.Enum<Level>
br.net.dd.netherwingcore.common.logging.Level
All Implemented Interfaces:
Serializable, Comparable<Level>, Constable

public enum Level extends Enum<Level>
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 operations
  • WARNING - Indication of a potential issue or cautionary notice
  • ERROR - An error that impacts the current operation, but the system can continue
  • FATAL_ERROR - A critical error that may cause the system to terminate
  • DEBUG - Detailed information useful for debugging purposes
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Represents 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

    Modifier and Type
    Method
    Description
    static Level
    Returns the enum constant of this class with the specified name.
    static Level[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • INFORMATION

      public static final Level INFORMATION
      General information about the operation of the system, used for non-critical log messages.
    • WARNING

      public static final Level WARNING
      Represents a warning that indicates a potential issue in the system, but does not stop its operation.
    • ERROR

      public static final Level ERROR
      Represents an error that causes an operation to fail, but the system continues running.
    • FATAL_ERROR

      public static final Level FATAL_ERROR
      Represents a severe error that affects the system's ability to continue operating. This level is used for critical issues.
    • DEBUG

      public static final Level DEBUG
      Represents debug-level information used for development and troubleshooting purposes.
    • TRACE

      public static final Level 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

      public static final Level 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

      public static Level[] 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

      public static Level valueOf(String name)
      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 name
      NullPointerException - if the argument is null