Class ColorSettings

java.lang.Object
dev.ua.theroer.magicutils.config.logger.ColorSettings

public class ColorSettings extends Object
Color settings for different log levels. Configuration class that manages color schemes for various types of log messages including error, warning, debug, and success messages.
  • Constructor Details

    • ColorSettings

      public ColorSettings()
      Default constructor for ColorSettings.
  • Method Details

    • toMap

      public Map<String, List<String>> toMap()
      Converts the color settings to a map for easy access. Creates a map where keys are log level names and values are their corresponding color lists.
      Returns:
      a Map containing log level names as keys and their color lists as values
    • getError

      public List<String> getError()
      Error colors.
      Returns:
      defensive copy of the error palette
    • setError

      public void setError(List<String> error)
      Sets colors used for error messages.
      Parameters:
      error - palette to copy; null clears the list
    • getWarn

      public List<String> getWarn()
      Warning colors.
      Returns:
      defensive copy of the warning palette
    • setWarn

      public void setWarn(List<String> warn)
      Sets colors used for warnings.
      Parameters:
      warn - palette to copy; null clears the list
    • getDebug

      public List<String> getDebug()
      Debug colors.
      Returns:
      defensive copy of the debug palette
    • setDebug

      public void setDebug(List<String> debug)
      Sets colors used for debug messages.
      Parameters:
      debug - palette to copy; null clears the list
    • getSuccess

      public List<String> getSuccess()
      Success colors.
      Returns:
      defensive copy of the success palette
    • setSuccess

      public void setSuccess(List<String> success)
      Sets colors used for success messages.
      Parameters:
      success - palette to copy; null clears the list