GWT Remote Logging - Logger Name replaced by logOnServer

214 views
Skip to first unread message

Wooi

unread,
Aug 12, 2011, 5:20:40 AM8/12/11
to Google Web Toolkit
Below is the message I got from my apache server...
com.google.gwt.logging.server.RemoteLoggingServiceUtil logOnServer
WARNING: blablabla

I try to check RemoteLoggingServiceUtil, seeing while my logger name
is null it will replaced?

This is my code...
private static Logger log = Logger.getLogger("Test");
log.warning("blablabla");

I expect something like...
com.google.gwt.logging.server.RemoteLoggingServiceUtil Test
WARNING: blablabla

Any advice?

Thank you in advance.

Wooi

unread,
Aug 15, 2011, 4:27:05 AM8/15/11
to Google Web Toolkit
I mean I expect something like this,
net.xxx.client.Abc Test
WARNING: blablabla

and I forgot to mention that this happen when I try to log from client
side.
While I try to log from server side, it work fine.
net.xxx.server.AbcDao Test
WARNING: blablabla

Anyone can help?

Thank you.

Marco

unread,
May 1, 2012, 10:12:13 AM5/1/12
to google-we...@googlegroups.com
Just had the same problem. Seems to be Issue 1930

As a (temporary) workaround I replaced the RemoteLoggingServiceUtil with my own implementation. My logging util logs the JUL (java.util.logging) LogRecords to SLF4J through SLF4JBridgeHandler.

Hopefully this will not be neccessary any more in future versions of GWT.
Reply all
Reply to author
Forward
0 new messages