com.google.gwt.libideas.logging.shared
Class ArrayListLogHandler
java.lang.Object
com.google.gwt.libideas.logging.shared.LogHandler
com.google.gwt.libideas.logging.shared.ArrayListLogHandler
public class ArrayListLogHandler
- extends LogHandler
This handler is used primarily for testing purposes. It stores all messages
received in an ArrayList
.
Method Summary |
java.lang.String |
getLastCategory()
|
java.lang.String |
getLastMessage()
Gets the last message published. |
java.lang.Throwable |
getLastThrowable()
Gets last throwable |
void |
publish(java.lang.String string,
Level level,
java.lang.String category,
java.lang.Throwable t)
publish the message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayListLogHandler
public ArrayListLogHandler()
getLastCategory
public java.lang.String getLastCategory()
getLastMessage
public java.lang.String getLastMessage()
- Gets the last message published.
- Returns:
- the last message.
getLastThrowable
public java.lang.Throwable getLastThrowable()
- Gets last throwable
publish
public void publish(java.lang.String string,
Level level,
java.lang.String category,
java.lang.Throwable t)
- Description copied from class:
LogHandler
- publish the message.
- Specified by:
publish
in class LogHandler
- Parameters:
string
- the messagelevel
- the message's levelcategory
- optional categoryt
- optional throwable