public class LoggerWrapper extends Object implements Logger
LT_EXCEPTION, LT_FAULT, LT_FILESTART, LT_INFO, LT_MERCHCFG, LT_PROXYCFG, LT_REPLY, LT_REQUEST, LT_TRANSTART| Constructor and Description |
|---|
LoggerWrapper(Logger _logger,
boolean _prepare,
boolean _logTranStart,
MerchantConfig _mc) |
| Modifier and Type | Method and Description |
|---|---|
Logger |
getLogger()
Returns the encapsulated Logger object.
|
MyStopWatch |
getStopWatch() |
String |
getUniqueKey() |
void |
log(String type,
String text)
Calls the encapsulated Logger object's log() method.
|
void |
log(String type,
String text,
boolean splitTimer)
Calls the encapsulated Logger object's log() method.
|
void |
logTransactionStart()
Calls the encapsulated Logger object's logTransactionStart() method.
|
void |
prepare()
Calls the encapsulated Logger object's prepare() method.
|
public LoggerWrapper(Logger _logger, boolean _prepare, boolean _logTranStart, MerchantConfig _mc) throws ConfigException
_logger - Logger object to encapsulate. May be null, in which
case, a LoggerImpl object will be created (unless
logging is not enabled)._prepare - Flag as to whether or not the logger's prepare() method
should be called._logTranStart - Flag as to whether or not the logger's
logTransactionStart() method should be called._mc - MerchantConfig object used to create and configure the
LoggerImpl object.ConfigException - if the preparation fails.public String getUniqueKey()
public void prepare()
throws ConfigException
prepare in interface LoggerConfigException - if preparation fails.public void logTransactionStart()
logTransactionStart in interface Loggerpublic void log(String type, String text, boolean splitTimer)
type - the log entry type.text - the actual text to be logged.splitTimer - to log split time.public Logger getLogger()
public MyStopWatch getStopWatch()
Copyright © 2022. All rights reserved.