public abstract class CLI
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
appName
The application name.
|
static java.lang.String |
DEFAULT_INSTALL_DIR_PROP
The default system property for the install directory ('install.dir').
|
Logger |
logger
The application logger.
|
java.util.Properties |
logProps
The logger configuration properties.
|
java.util.Properties |
props
The properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
logError(java.lang.String message)
Logs an error to both the console and log file.
|
void |
logError(java.lang.String message,
java.lang.Throwable t)
Logs an error to both the console and log file.
|
void |
logInfo(java.lang.String message)
Logs to both the console and the log file.
|
public static final java.lang.String DEFAULT_INSTALL_DIR_PROP
public final java.lang.String appName
public final java.util.Properties props
public final java.util.Properties logProps
public final Logger logger
public final void logInfo(java.lang.String message)
message - The message.public final void logError(java.lang.String message)
message - The error message.public final void logError(java.lang.String message,
java.lang.Throwable t)
message - The error message.t - A throwable.