Example usage for com.google.gwt.gen2.widgetbase.client Gen2CssInjector addLogHandlerDefault

List of usage examples for com.google.gwt.gen2.widgetbase.client Gen2CssInjector addLogHandlerDefault

Introduction

In this page you can find the example usage for com.google.gwt.gen2.widgetbase.client Gen2CssInjector addLogHandlerDefault.

Prototype

public static void addLogHandlerDefault() 

Source Link

Document

Injects the default css used for the log handlers defined in this package.

Usage

From source file:com.google.gwt.gen2.demo.logging.client.LoggingDemo.java

License:Apache License

/**
 * This is the entry point method./*  ww w . j av a2  s  .  c  o m*/
 */
public void onModuleLoad() {
    if (Log.isLoggingSupported() && !Log.isLoggingMinimal()) {
        Gen2CssInjector.addLogHandlerDefault();
        Log.setDefaultLevel(Level.ALL);

        final FlexTable control = new FlexTable();
        RootPanel.get().add(control);
        addLevelControls(control);
        addHandlers(control);
    } else {
        Window.alert("Now that you have logging turned off or to minimal, now check your compiled output.");
        Log.warning("Should be compiled out when logging is turned off or in minimal mode");
        Log.severe("Should be compiled out when logging is turned off, but present in minimal mode");
    }
}