com.google.gwt.core.shared.GWT.log()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(180)

本文整理了Java中com.google.gwt.core.shared.GWT.log()方法的一些代码示例,展示了GWT.log()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GWT.log()方法的具体详情如下:
包路径:com.google.gwt.core.shared.GWT
类名称:GWT
方法名:log

GWT.log介绍

[英]Logs a message to the development shell logger in Development Mode, or to the JavaScript console in Super Dev Mode. Calls are optimized out in Production Mode.
[中]在开发模式下将消息记录到开发shell记录器,或在超级开发模式下将消息记录到JavaScript控制台。呼叫在生产模式下进行优化。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

  1. /**
  2. * Logs a message to the development shell logger in Development Mode, or to
  3. * the JavaScript console in Super Dev Mode. Calls are optimized out in Production Mode.
  4. */
  5. public static void log(String message) {
  6. log(message, null);
  7. }

代码示例来源:origin: com.google.gwt/gwt-servlet

  1. /**
  2. * Logs a message to the development shell logger in Development Mode, or to
  3. * the console in Super Dev Mode. Calls are optimized out in Production Mode.
  4. */
  5. public static void log(String message) {
  6. com.google.gwt.core.shared.GWT.log(message);
  7. }

代码示例来源:origin: com.google.gwt/gwt-servlet

  1. /**
  2. * Logs a message to the development shell logger in Development Mode, or to
  3. * the console in Super Dev Mode. Calls are optimized out in Production Mode.
  4. */
  5. public static void log(String message, Throwable e) {
  6. com.google.gwt.core.shared.GWT.log(message, e);
  7. }

代码示例来源:origin: com.google.web.bindery/requestfactory-server

  1. /**
  2. * Logs a message to the development shell logger in Development Mode, or to
  3. * the JavaScript console in Super Dev Mode. Calls are optimized out in Production Mode.
  4. */
  5. public static void log(String message) {
  6. log(message, null);
  7. }

代码示例来源:origin: net.wetheinter/gwt-user

  1. /**
  2. * Logs a message to the development shell logger in Development Mode, or to
  3. * the console in Super Dev Mode. Calls are optimized out in Production Mode.
  4. */
  5. public static void log(String message) {
  6. com.google.gwt.core.shared.GWT.log(message);
  7. }

代码示例来源:origin: com.google.web.bindery/requestfactory-server

  1. /**
  2. * Logs a message to the development shell logger in Development Mode, or to
  3. * the console in Super Dev Mode. Calls are optimized out in Production Mode.
  4. */
  5. public static void log(String message, Throwable e) {
  6. com.google.gwt.core.shared.GWT.log(message, e);
  7. }

代码示例来源:origin: net.wetheinter/gwt-user

  1. /**
  2. * Logs a message to the development shell logger in Development Mode, or to
  3. * the JavaScript console in Super Dev Mode. Calls are optimized out in Production Mode.
  4. */
  5. public static void log(String message) {
  6. log(message, null);
  7. }

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

  1. /**
  2. * Logs a message to the development shell logger in Development Mode, or to
  3. * the console in Super Dev Mode. Calls are optimized out in Production Mode.
  4. */
  5. public static void log(String message, Throwable e) {
  6. com.google.gwt.core.shared.GWT.log(message, e);
  7. }

代码示例来源:origin: net.wetheinter/gwt-user

  1. /**
  2. * Logs a message to the development shell logger in Development Mode, or to
  3. * the console in Super Dev Mode. Calls are optimized out in Production Mode.
  4. */
  5. public static void log(String message, Throwable e) {
  6. com.google.gwt.core.shared.GWT.log(message, e);
  7. }

代码示例来源:origin: com.google.web.bindery/requestfactory-server

  1. /**
  2. * Logs a message to the development shell logger in Development Mode, or to
  3. * the console in Super Dev Mode. Calls are optimized out in Production Mode.
  4. */
  5. public static void log(String message) {
  6. com.google.gwt.core.shared.GWT.log(message);
  7. }

代码示例来源:origin: protegeproject/webprotege

  1. @Override
  2. public Optional<String> handleInvocationException(InvocationException ex) {
  3. GWT.log("Could not retrieve events due to server connection problems.");
  4. return Optional.empty();
  5. }

代码示例来源:origin: com.asayama.gwt.angular/gwt-angular-util

  1. public String getText() {
  2. String m = ScriptResourcePrototype.class.getName() + " should not be directly instantiated.";
  3. UnsupportedOperationException e = new UnsupportedOperationException(m);
  4. GWT.log(m, e);
  5. throw e;
  6. }

代码示例来源:origin: com.asayama.gwt.angular/gwt-angular-util

  1. @Override
  2. public String getName() {
  3. String m = ScriptResourcePrototype.class.getName() + " should not be directly instantiated.";
  4. UnsupportedOperationException e = new UnsupportedOperationException(m);
  5. GWT.log(m, e);
  6. throw e;
  7. }

代码示例来源:origin: io.reinert.requestor.core/requestor-api

  1. private String generateHa1(String realm) {
  2. final String a1 = user + ':' + realm + ':' + password;
  3. GWT.log(" A1: " + a1);
  4. final String ha1 = MD5.hash(a1);
  5. GWT.log("HA1: " + ha1);
  6. return ha1;
  7. }

代码示例来源:origin: geogebra/geogebra

  1. @Override
  2. public void onFontError(AsyncLoadedFont font) {
  3. GWT.log("Error loading font " + font);
  4. charDrawingRequests -= 1;
  5. maybeNotifyDrawingFinishedCallback(true);
  6. }
  7. });

代码示例来源:origin: com.github.gwtd3/gwt-d3-api

  1. @Override
  2. public T apply(final Element context, final Value d, final int index) {
  3. Value value = getProperty(propertyName, d);
  4. GWT.log("value" + value.<T>as());
  5. return value.as();
  6. }

代码示例来源:origin: ltearno/hexa.tools

  1. @Override
  2. public JSONValue getValue()
  3. {
  4. String color = html.getElement().getAttribute( "value" );
  5. if( color == null )
  6. color = "";
  7. GWT.log( "getValue : " + color );
  8. return new JSONString( color );
  9. }

代码示例来源:origin: gwtd3/gwt-d3

  1. @Override
  2. public T apply(final Element context, final Value d, final int index) {
  3. Value value = getProperty(propertyName, d);
  4. GWT.log("value" + value.<T>as());
  5. return value.as();
  6. }

代码示例来源:origin: fr.lteconsulting/hexa.core

  1. @Override
  2. public JSONValue getValue()
  3. {
  4. String color = html.getElement().getAttribute( "value" );
  5. if( color == null )
  6. color = "";
  7. GWT.log( "getValue : " + color );
  8. return new JSONString( color );
  9. }

代码示例来源:origin: fr.lteconsulting/hexa.core

  1. private void setColor( String color )
  2. {
  3. if( color == null )
  4. html.getElement().getStyle().clearBackgroundColor();
  5. else
  6. html.getElement().getStyle().setBackgroundColor( color );
  7. html.getElement().setAttribute( "value", color );
  8. GWT.log( "setValue : " + color );
  9. }

相关文章