Class HasWidgetsLogHandler

java.lang.Object
java.util.logging.Handler
com.google.gwt.logging.client.HasWidgetsLogHandler
Direct Known Subclasses:
PopupLogHandler

public class HasWidgetsLogHandler extends Handler
A 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 Details

    • HasWidgetsLogHandler

      public HasWidgetsLogHandler(HasWidgets container)
  • Method Details

    • clear

      public void clear()
    • close

      public void close()
      Specified by:
      close in class Handler
    • flush

      public void flush()
      Specified by:
      flush in class Handler
    • publish

      public void publish(LogRecord record)
      Specified by:
      publish in class Handler