diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-11-06 15:17:04 +0100 |
---|---|---|
committer | Pekka Maanpää <pekkamaa@vaadin.com> | 2017-11-06 16:17:04 +0200 |
commit | c58c7e7a2329011e70ad3afeb11b1a667eb6bf37 (patch) | |
tree | e6b15d565dc23c8004cb9de44720e22f35dae837 /uitest | |
parent | cd9b32a99047a28f4999b404bb631a5d723ca0d9 (diff) | |
download | vaadin-framework-c58c7e7a2329011e70ad3afeb11b1a667eb6bf37.tar.gz vaadin-framework-c58c7e7a2329011e70ad3afeb11b1a667eb6bf37.zip |
Use Logger instead of VConsole (#10249)
Because VConsole is deprecated and it recommends using Logger instead
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java b/uitest/src/main/java/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java index e65df5f14e..cfb8f7f202 100644 --- a/uitest/src/main/java/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java +++ b/uitest/src/main/java/com/vaadin/tests/widgetset/client/helloworldfeature/HelloWorldExtensionConnector.java @@ -15,10 +15,11 @@ */ package com.vaadin.tests.widgetset.client.helloworldfeature; +import java.util.logging.Logger; + import com.google.gwt.user.client.Window; import com.vaadin.client.ServerConnector; import com.vaadin.client.Util; -import com.vaadin.client.VConsole; import com.vaadin.client.extensions.AbstractExtensionConnector; import com.vaadin.shared.ui.Connect; import com.vaadin.tests.extensions.HelloWorldExtension; @@ -45,9 +46,13 @@ public class HelloWorldExtensionConnector extends AbstractExtensionConnector { String msg = getState().getGreeting() + " from " + Util.getConnectorString(this) + " attached to " + Util.getConnectorString(getParent()); - VConsole.log(msg); + getLogger().info(msg); String response = Window.prompt(msg, ""); getRpcProxy(HelloWorldRpc.class).onMessageSent(response); } + + private static Logger getLogger() { + return Logger.getLogger(HelloWorldExtensionConnector.class.getName()); + } } |