public Widget getWidget() {
return tree;
}
public void publish(String message, Level level, String category, Throwable e) {
HasFastTreeItems parent = tree;
if (category == null) {
parent = getChild(tree, "default");
} else {
String[] args = Log.splitCategory(category);
for (int i = 0; i < args.length; i++) {
parent = getChild(parent, args[i]);
}
}
FastTreeItem target = new FastTreeItem(message);
parent.addItem(target);
target.addStyleName(level.getName().toLowerCase());
if (e != null) {
target.addItem(DivLogHandler.formatMessage("thrown", level, e));
}