Open confile opened 10 years ago
How do I have to setup GWT remote logging with the Grails GWT Plugin.
In my web.xml file I did:
<servlet> <servlet-name>remoteLogging</servlet-name> <servlet-class>com.google.gwt.logging.server.RemoteLoggingServiceImpl</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>remoteLogging</servlet-name> <url-pattern>/web/remote_logging</url-pattern> </servlet-mapping>
In my gwt.xml file I did:
<inherits name="com.google.gwt.logging.Logging" /> <set-property name="gwt.logging.logLevel" value="INFO" /> <set-property name="gwt.logging.enabled" value="TRUE" /> <set-property name="gwt.logging.popupHandler" value="DISABLED" /> <set-property name="gwt.logging.developmentModeHandler" value="ENABLED" /> <set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" />
And somewhere in my GWT Java code I did:
import com.google.gwt.logging.client.SimpleRemoteLogHandler; import java.util.logging.Level; import java.util.logging.LogRecord; SimpleRemoteLogHandler remoteLog = new SimpleRemoteLogHandler(); remoteLog.publish(new LogRecord(Level.INFO, “log message”));
But, I got the following error:
06:03:00.592 [ERROR] [web] Sun Feb 09 06:03:00 CET 2014 WireActivityLogger SEVERE: Remote logging failed: com.google.gwt.user.client.rpc.InvocationException:
Do you have any idea how to fix that?
How do I have to setup GWT remote logging with the Grails GWT Plugin.
In my web.xml file I did:
In my gwt.xml file I did:
And somewhere in my GWT Java code I did:
But, I got the following error:
Do you have any idea how to fix that?