TagReaderUtilspublic abstract class TagReaderLogging
extends Object
| Constructor | Description |
|---|---|
TagReaderLogging() |
Constructs an empty tag parsing logger
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
getDebugLogEnabled() |
|
boolean |
getUseSystemOut() |
Get the setting controling the debug output to System.out (vs log4j)
|
void |
logDebug(String context,
String tag,
String log) |
log information conditionally based on debug setting using the info level of the logger
|
void |
logError(String context,
String tag,
String log) |
log a string at the error setting
|
void |
logError(String context,
String tag,
String log,
Throwable e) |
log a string and a throwable information at the error setting
|
void |
logError(String context,
String tag,
Throwable e) |
log a throwables information at the error setting
|
void |
logInfo(String context,
String tag,
String log) |
Log a string at the info setting
|
void |
logWarn(String context,
String tag,
String log) |
log a string at the warn setting
|
boolean |
setDebugLogEnabled(boolean debugLog) |
Enable/disable debug logging.
|
void |
setUseSystemOut(boolean useSystemOut) |
specify whether to log using System.out rather than the default (log4j)
|
public TagReaderLogging()
public boolean getDebugLogEnabled()
public boolean getUseSystemOut()
public void logDebug(String context,
String tag,
String log)
log - - the string to logpublic void logError(String context,
String tag,
String log)
log - - the string to logpublic void logError(String context,
String tag,
String log,
Throwable e)
log - - the string to loge - - the throwable exception to log the information aboutpublic void logError(String context,
String tag,
Throwable e)
e - - the throwable exception to log the information aboutpublic void logInfo(String context,
String tag,
String log)
log - - the string to logpublic void logWarn(String context,
String tag,
String log)
log - - the string to logpublic boolean setDebugLogEnabled(boolean debugLog)
debugLog - public void setUseSystemOut(boolean useSystemOut)
useSystemOut -