public class CommandLogger extends Object
CommangHandler log messages.| Modifier and Type | Field and Description |
|---|---|
static String |
DOUBLE_INDENT
Double indent for help output.
|
static String |
INDENT
Indent for help output.
|
| Constructor and Description |
|---|
CommandLogger() |
| Modifier and Type | Method and Description |
|---|---|
static String |
errorMessage(Throwable e)
Generates readable error message from exception
|
static String |
grouped(Object... params)
Join input parameters with space and wrap grouping braces
(). |
static SB |
join(SB sb,
String sbDelimeter,
String delimeter,
Object... params)
Join input parameters with specified
delimeter between them and append to the end delimeter. |
static String |
join(String delimeter,
Object... params)
Join input parameters with specified
delimeter between them. |
static String |
optional(Object... params)
Join input parameters with space and wrap optional braces
[]. |
static String |
or(Object... params)
Concatenates input parameters to single string with OR delimiter
|. |
static boolean |
printErrors(Map<UUID,Exception> exceptions,
String infoMsg,
Logger logger)
Prints exception messages to log
|
public static final String INDENT
public static final String DOUBLE_INDENT
public static String join(String delimeter, Object... params)
delimeter between them.delimeter - Specified delimeter.params - Other input parameter.delimeter.public static SB join(SB sb, String sbDelimeter, String delimeter, Object... params)
delimeter between them and append to the end delimeter.sb - Specified string builder.sbDelimeter - Delimeter between sb and appended param.delimeter - Specified delimeter.params - Other input parameter.delimeter.public static String optional(Object... params)
[].params - Other input parameter.public static String or(Object... params)
|.params - Remaining parameters.public static String grouped(Object... params)
().params - Input parameter.public static String errorMessage(Throwable e)
e - Exctption
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022