public class LogLine extends Object
| Constructor and Description |
|---|
LogLine() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
boolean value)
Adds the.
|
void |
add(String name,
double value)
Adds the.
|
void |
add(String name,
int value)
Adds the.
|
void |
add(String name,
long value)
Adds the.
|
void |
add(String name,
String value)
Adds the.
|
String |
finish(boolean success)
Return the finished log line, including success and elapsed time.
|
String |
getEc()
Gets the ec.
|
String |
getEt()
Gets the et.
|
protected String |
getLine(boolean audit)
Return the log line based on what we have so far.
|
void |
init(String component,
String transId,
String fromAppId,
String operation)
Initialize the start time and identify the component, transactionId and fromAppId
which are mandatory to log on each line.
|
void |
init(String component,
String transId,
String fromAppId,
String toAppId,
String operation)
Inits the logline.
|
void |
setEc(String ec)
Sets the ec.
|
void |
setEt(String et)
Sets the et.
|
void |
setLevel(String ll)
Sets the level.
|
void |
setSs(Boolean ss)
Sets the ss.
|
protected void |
setSs(String ss)
Sets the ss.
|
protected void |
setUserContributed(String userContributed)
Sets the user contributed.
|
void |
startTimer()
Overrides the value from init().
|
public void init(String component, String transId, String fromAppId, String operation)
component - identifies the subsystem or component of the applicationtransId - identifies the unique transaction id for the request being processedfromAppId - identifies the application that is making the requestoperation - the operationpublic void init(String component, String transId, String fromAppId, String toAppId, String operation)
component - the componenttransId - the trans idfromAppId - the from app idtoAppId - the to app idoperation - the operationpublic void startTimer()
public void add(String name, String value)
name - the namevalue - the valuepublic void add(String name, int value)
name - the namevalue - the valuepublic void add(String name, long value)
name - the namevalue - the valuepublic void add(String name, double value)
name - the namevalue - the valuepublic void add(String name, boolean value)
name - the namevalue - the valueprotected String getLine(boolean audit)
audit - the auditpublic String finish(boolean success)
success - the successpublic void setLevel(String ll)
ll - the new levelprotected void setSs(String ss)
ss - the new sspublic void setSs(Boolean ss)
ss - the new sspublic String getEc()
public void setEc(String ec)
ec - the new ecpublic String getEt()
public void setEt(String et)
et - the new etprotected void setUserContributed(String userContributed)
userContributed - the new user contributedCopyright © 2017. All Rights Reserved.