java.lang.Object
java.util.logging.Level
com.clumd.projects.java_common_utils.logging.common.CustomLevel
All Implemented Interfaces:
LogLevel, Serializable

public class CustomLevel extends Level implements LogLevel, Serializable
See Also:
  • Field Details

  • Constructor Details

    • CustomLevel

      public CustomLevel(@NonNull @NonNull String level, int priority)
    • CustomLevel

      public CustomLevel(@NonNull @NonNull String level, int priority, @NonNull @NonNull String levelFormat)
    • CustomLevel

      public CustomLevel(@NonNull @NonNull String level, int priority, @NonNull @NonNull LogLevelFormat format)
  • Method Details

    • of

      public static CustomLevel of(@NonNull @NonNull String level, int priority)
    • of

      public static CustomLevel of(@NonNull @NonNull String level, int priority, @NonNull @NonNull String levelFormat)
    • of

      public static CustomLevel of(@NonNull @NonNull String level, int priority, @NonNull @NonNull LogLevelFormat format)
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Level
    • weakEquals

      public boolean weakEquals(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Level
    • getLevelName

      public String getLevelName()
      Description copied from interface: LogLevel
      Get the name of this Log Level.
      Specified by:
      getLevelName in interface LogLevel
      Returns:
      The Name of this Custom Log Level
    • getPriority

      public int getPriority()
      Description copied from interface: LogLevel
      Get the priority of this Log Level
      Specified by:
      getPriority in interface LogLevel
      Returns:
      The priority of this Log Level
    • getLevelFormat

      public String getLevelFormat()
      Description copied from interface: LogLevel
      Get the formatting this Log Level should be displayed with
      Specified by:
      getLevelFormat in interface LogLevel
      Returns:
      The escape codes required to display log messages at this Log Level.