|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.allen_sauer.gwt.log.shared.LogRecord
public class LogRecord
Wrapper class to capture a single log message and optional stack trace, used primarily for transfer between client and server.
| Constructor Summary | |
|---|---|
LogRecord(java.lang.String category,
int level,
java.lang.String message,
java.lang.Throwable throwable)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 null| Method Detail |
|---|
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||