com.google.gwt.libideas.logging.shared
Class ArrayListLogHandler

java.lang.Object
  extended by com.google.gwt.libideas.logging.shared.LogHandler
      extended by 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.


Constructor Summary
ArrayListLogHandler()
           
 
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 com.google.gwt.libideas.logging.shared.LogHandler
clear, format, getLevel, hideHandler, isSupported, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayListLogHandler

public ArrayListLogHandler()
Method Detail

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 message
level - the message's level
category - optional category
t - optional throwable