public abstract class ManifestModelLogging
extends Object
| Constructor and Description |
|---|
ManifestModelLogging()
Constructs an empty Manifest Model
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
protected abstract String |
getContextStr()
Get the context string associated with the Model to include with the log statements
|
boolean |
getDebugLog()
Get the current debug log setting
|
void |
logDebug(String methodName,
String log)
log information conditionally based on debug setting using the info level of the logger
|
void |
logError(String methodName,
String log)
log a string at the error setting
|
void |
logError(String methodName,
String log,
Throwable e)
log a string and a throwable information at the error setting
|
void |
logError(String methodName,
Throwable e)
log a throwables information at the error setting
|
void |
logInfo(String methodName,
String log)
Log a string at the info setting
|
void |
logWarn(String methodName,
String log)
log a string at the warn setting
|
boolean |
setDebugLog(boolean debugLog)
Enable/disable debug logging.
|
void |
setUseSystemOut(boolean useSystemOut)
specify whether to log using System.out rather than the default (log4j)
|
boolean |
usingSystemOut()
Get the current setting of using the system out for debug (vs log4j)
|
public ManifestModelLogging()
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionprotected abstract String getContextStr()
public boolean getDebugLog()
public void logDebug(String methodName,
String log)
methodName - - method name to include in the log statementlog - - the string to logpublic void logError(String methodName,
String log)
methodName - - method name to include in the log statementlog - - the string to logpublic void logError(String methodName,
String log,
Throwable e)
methodName - - method name to include in the log statementlog - - the string to loge - - the throwable exception to log the information aboutpublic void logError(String methodName,
Throwable e)
methodName - - method name to include in the log statemente - - the throwable exception to log the information aboutpublic void logInfo(String methodName,
String log)
methodName - - method name to include in the log statementlog - - the string to logpublic void logWarn(String methodName,
String log)
methodName - - method name to include in the log statementlog - - the string to logpublic boolean setDebugLog(boolean debugLog)
debugLog - public void setUseSystemOut(boolean useSystemOut)
useSystemOut - public boolean usingSystemOut()