Enum ServiceLogColor
- java.lang.Object
-
- java.lang.Enum<ServiceLogColor>
-
- cz.xtf.core.service.logs.streaming.ServiceLogColor
-
- All Implemented Interfaces:
Serializable,Comparable<ServiceLogColor>
public enum ServiceLogColor extends Enum<ServiceLogColor>
This enum contains the colors that are used when logging container's log on the console; each container gets a different color in order to visually differentiate containers; the background is also colored in order to differentiate application log from containers log.
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static ServiceLogColor[]COLORSStringvalue
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceLogColorgetNext()static ServiceLogColorvalueOf(String name)Returns the enum constant of this type with the specified name.static ServiceLogColor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANSI_RESET_FG
public static final ServiceLogColor ANSI_RESET_FG
-
ANSI_RESET_BG
public static final ServiceLogColor ANSI_RESET_BG
-
ANSI_POD_LOG_BG
public static final ServiceLogColor ANSI_POD_LOG_BG
-
ANSI_RED1
public static final ServiceLogColor ANSI_RED1
-
ANSI_GREEN1
public static final ServiceLogColor ANSI_GREEN1
-
ANSI_YELLOW1
public static final ServiceLogColor ANSI_YELLOW1
-
ANSI_AZURE1
public static final ServiceLogColor ANSI_AZURE1
-
ANSI_VIOLET1
public static final ServiceLogColor ANSI_VIOLET1
-
ANSI_WATER1
public static final ServiceLogColor ANSI_WATER1
-
ANSI_BRIGHT_RED
public static final ServiceLogColor ANSI_BRIGHT_RED
-
ANSI_BRIGHT_GREEN
public static final ServiceLogColor ANSI_BRIGHT_GREEN
-
ANSI_BRIGHT_YELLOW
public static final ServiceLogColor ANSI_BRIGHT_YELLOW
-
ANSI_BRIGHT_BLUE
public static final ServiceLogColor ANSI_BRIGHT_BLUE
-
ANSI_BRIGHT_PURPLE
public static final ServiceLogColor ANSI_BRIGHT_PURPLE
-
ANSI_BRIGHT_CYAN
public static final ServiceLogColor ANSI_BRIGHT_CYAN
-
ANSI_BRIGHT_WHITE
public static final ServiceLogColor ANSI_BRIGHT_WHITE
-
ANSI_POD_NAME_BG
public static final ServiceLogColor ANSI_POD_NAME_BG
-
-
Field Detail
-
value
public final String value
-
COLORS
public static final ServiceLogColor[] COLORS
-
-
Method Detail
-
values
public static ServiceLogColor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServiceLogColor c : ServiceLogColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceLogColor valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getNext
public static ServiceLogColor getNext()
-
-