com.google.gwt.libideas.logging.client
Class TreeLogHandler
java.lang.Object
com.google.gwt.libideas.logging.shared.LogHandler
com.google.gwt.libideas.logging.client.PopupWidgetLogHandler
com.google.gwt.libideas.logging.client.TreeLogHandler
public class TreeLogHandler
- extends PopupWidgetLogHandler
Publishes log messages into a popup tree sorted by category.
Constructor Summary |
TreeLogHandler(boolean autoShow)
TreeHandler, used only in development. |
Method Summary |
void |
clear()
Clears the contents of the current log messages. |
FastTreeItem |
getChild(HasFastTreeItems parent,
java.lang.String childName)
|
com.google.gwt.user.client.ui.Widget |
getWidget()
|
void |
publish(java.lang.String message,
Level level,
java.lang.String category,
java.lang.Throwable e)
publish the message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeLogHandler
public TreeLogHandler(boolean autoShow)
- TreeHandler, used only in development.
- Parameters:
autoShow
- is the tree handler shown when new logging messages are
added.
clear
public void clear()
- Clears the contents of the current log messages.
- Overrides:
clear
in class LogHandler
getChild
public FastTreeItem getChild(HasFastTreeItems parent,
java.lang.String childName)
getWidget
public com.google.gwt.user.client.ui.Widget getWidget()
- Specified by:
getWidget
in class PopupWidgetLogHandler
publish
public void publish(java.lang.String message,
Level level,
java.lang.String category,
java.lang.Throwable e)
- Description copied from class:
LogHandler
- publish the message.
- Specified by:
publish
in class LogHandler
- Parameters:
message
- the messagelevel
- the message's levelcategory
- optional categorye
- optional throwable