public class LogRecord
extends java.lang.Object
implements java.io.Serializable, com.google.gwt.user.client.rpc.IsSerializable
| Constructor and Description |
|---|
LogRecord(java.lang.String category,
int level,
java.lang.String message,
java.lang.Throwable throwable)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCategory() |
java.lang.String |
getFormattedMessage()
Retrieve a formatted message for this log record.
|
int |
getLevel()
Retrieve the log level for this log record.
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> |
getMapEntrySet()
Retrieve the Set of key/value pairs for this log record, used for logging arbitrary data.
|
java.lang.String |
getMessage()
Retrieve this raw log record.
|
WrappedClientThrowable |
getModifiableWrappedClientThrowable()
Get the wrapped client throwable, suitable for serialization with RPC serialization code
penalty.
|
int |
getRecordSequence()
Retrieve the global client-side or server-side sequence number for this log record.
|
java.lang.Throwable |
getThrowable()
Retrieves either the original (server side) throwable or a reconstituted client-side throwable.
|
void |
set(java.lang.String key,
java.lang.String value)
Set a key/value pair associated with this log record.
|
public LogRecord(java.lang.String category,
int level,
java.lang.String message,
java.lang.Throwable throwable)
category - The category in which this message should be loggedlevel - the level at which this message should be loggedmessage - the message to be loggedthrowable - the stack trace associated with this message or nullpublic java.lang.String getCategory()
public java.lang.String getFormattedMessage()
public int getLevel()
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> getMapEntrySet()
public java.lang.String getMessage()
public WrappedClientThrowable getModifiableWrappedClientThrowable()
public int getRecordSequence()
public java.lang.Throwable getThrowable()
public void set(java.lang.String key,
java.lang.String value)
key - the unique key under which to store the supplied valuevalue - the value to be stored under the provided key