public abstract class ManifestReaderLogging
extends Object
| Constructor and Description |
|---|
ManifestReaderLogging()
Constructs an empty Manifest Reader
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getContextStr()
Get the context string associated with the Model to include with the log statements
|
boolean |
getDebugLog()
Get the current setting for debug logging
|
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 setting controlling the debug output to System.out (vs log4j)
|
public ManifestReaderLogging()
protected 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()