Tuesday, December 3, 2013

GWT Remote Logging message gets logged twice

Hello everybody,
I'm fairly new to the google user group of gwt but i came across a very annoying problem while implementing gwt logging and cause I don't have any idea how to solve that I hope someone else from here has an idea.

I implemented logging in our gwt application with log4j. I used "log4j-gwt.jar" to access log4j loggers even on client site.

I also implemented my own remote logging servlet and put it in my web.xml. This servlet overrides the logOnServer() method, takes the log record and logs it into a log4j logger. That works fine so far.

But every time a client logs a message I see two messages in the console. (only in development mode by the way) 
One from my log4j logger with the specified pattern and one that looks like from the java.util.logging logger.

Does anybody came across this issue already and knows how to completely disable the default java.util.logging in gwt?

Thanks in advance!

Cheers
 Sven

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment