Package com.google.gwt.logging.client
Class HasWidgetsLogHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- com.google.gwt.logging.client.HasWidgetsLogHandler
-
- Direct Known Subclasses:
PopupLogHandler
public class HasWidgetsLogHandler extends java.util.logging.HandlerA handler which can log to any widget which extends the HasWidgets interface. This allows users to log to anywhere they would like in their UI - see the LogConfiguration class for an example. Note that the widget passed in must handle multiple calls to widget.add(widget) gracefully.
-
-
Constructor Summary
Constructors Constructor Description HasWidgetsLogHandler(HasWidgets container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidclose()voidflush()voidpublish(java.util.logging.LogRecord record)
-
-
-
Constructor Detail
-
HasWidgetsLogHandler
public HasWidgetsLogHandler(HasWidgets container)
-
-
Method Detail
-
clear
public void clear()
-
close
public void close()
- Specified by:
closein classjava.util.logging.Handler
-
flush
public void flush()
- Specified by:
flushin classjava.util.logging.Handler
-
publish
public void publish(java.util.logging.LogRecord record)
- Specified by:
publishin classjava.util.logging.Handler
-
-