public class ClientLogEntryImpl extends java.lang.Object implements ClientLogEntry, java.io.Serializable
ClientLogEntry.MessageType
Constructor and Description |
---|
ClientLogEntryImpl(java.lang.String loggerId,
ClientLogLevel logLevel,
java.lang.String message,
java.util.Date date,
java.util.TimeZone timeZone) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplication()
Returns the application name
|
java.lang.String |
getCorrelationId()
Returns the SMP correlation ID of this entry.
|
java.util.Date |
getDate()
Returns the timestamp of the log (generated)
|
java.lang.String |
getDCComponent()
Returns the application type
|
java.lang.Throwable |
getException()
Returns the exception logged inside the entry
|
java.lang.String |
getGUID()
Returns the unique log record id (generated)
|
java.lang.String |
getLocation()
Returns the location name, class and package name where the log record is created
|
ClientLogLevel |
getLogLevel()
Returns the level of the log.
|
java.lang.String |
getMessage()
Returns the log message.
|
int |
getMessageCode()
Returns a code associated to the log message, e.g.
|
ClientLogEntry.MessageType |
getMessageType()
Returns the log record message type (default: PLAIN)
|
java.lang.String |
getRootContextId()
Returns the root context id from SAP Passport (from tracing)
|
java.lang.String |
getSourceName()
Returns the source of the log message (category or location information)
|
java.util.TimeZone |
getTimeZone()
Returns the time zone (generated)
|
java.lang.String |
getTransactionId()
Returns the transaction id from SAP Passport (from tracing)
|
java.lang.String |
getUser()
Returns the name (id) of the mobile user
|
void |
setException(java.lang.Throwable exception) |
java.lang.String |
toString() |
public ClientLogEntryImpl(java.lang.String loggerId, ClientLogLevel logLevel, java.lang.String message, java.util.Date date, java.util.TimeZone timeZone)
public ClientLogLevel getLogLevel()
ClientLogEntry
getLogLevel
in interface ClientLogEntry
public java.lang.String getMessage()
ClientLogEntry
getMessage
in interface ClientLogEntry
public java.util.Date getDate()
ClientLogEntry
getDate
in interface ClientLogEntry
public java.util.TimeZone getTimeZone()
ClientLogEntry
getTimeZone
in interface ClientLogEntry
public java.lang.String getSourceName()
ClientLogEntry
getSourceName
in interface ClientLogEntry
public int getMessageCode()
ClientLogEntry
getMessageCode
in interface ClientLogEntry
public java.lang.String getGUID()
ClientLogEntry
getGUID
in interface ClientLogEntry
public java.lang.String getLocation()
ClientLogEntry
getLocation
in interface ClientLogEntry
public java.lang.String getApplication()
ClientLogEntry
getApplication
in interface ClientLogEntry
public java.lang.String getCorrelationId()
ClientLogEntry
getCorrelationId
in interface ClientLogEntry
public java.lang.String getRootContextId()
ClientLogEntry
getRootContextId
in interface ClientLogEntry
public java.lang.String getTransactionId()
ClientLogEntry
getTransactionId
in interface ClientLogEntry
public java.lang.String getUser()
ClientLogEntry
getUser
in interface ClientLogEntry
public ClientLogEntry.MessageType getMessageType()
ClientLogEntry
getMessageType
in interface ClientLogEntry
public java.lang.String getDCComponent()
ClientLogEntry
getDCComponent
in interface ClientLogEntry
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Throwable getException()
ClientLogEntry
getException
in interface ClientLogEntry
public void setException(java.lang.Throwable exception)