Enum Class LoggingLevel

java.lang.Object
java.lang.Enum<LoggingLevel>
com.renomad.minum.logging.LoggingLevel
All Implemented Interfaces:
Serializable, Comparable<LoggingLevel>, Constable

public enum LoggingLevel extends Enum<LoggingLevel>
An enumeration of the levels of logging our system provides.
  • Enum Constant Details

    • DEBUG

      public static final LoggingLevel DEBUG
      Information useful for debugging.
    • ASYNC_ERROR

      public static final LoggingLevel ASYNC_ERROR
      Represents an error that occurs in a separate thread, so that we are not able to catch it bubbling up
    • TRACE

      public static final LoggingLevel TRACE
      Information marked as trace is pretty much entered for the same reason as DEBUG - i.e. so we can see important information about the running state of the program. The only difference is that trace information is very voluminous. That is, there's tons of it, and it could make it harder to find the important information amongst a lot of noise. For that reason, TRACE is usually turned off.
    • AUDIT

      public static final LoggingLevel AUDIT
      Information marked audit is for business-related stuff. Like, a new user being created. A photo being looked for. Stuff closer to the user needs.
  • Method Details

    • values

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