Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GWT Remote Logging with Grails GWT Plugin #47

Open
confile opened this issue Feb 9, 2014 · 0 comments
Open

GWT Remote Logging with Grails GWT Plugin #47

confile opened this issue Feb 9, 2014 · 0 comments

Comments

@confile
Copy link

confile commented Feb 9, 2014

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant