Changing formatting of server-side logging using java.util.logging (not log4j)

72 views
Skip to first unread message

Ted M. Young

unread,
Mar 14, 2012, 7:46:02 PM3/14/12
to gwt...@googlegroups.com
I've read through  http://code.google.com/p/gwt-log/wiki/GettingStarted several times, but I'm still not seeing how to change the formatting for the server-side logging. I have the client-side working fine, but the server side is still using the default formatter (simple format?). I want it to use my custom formatter, so I created a logging.properties file, like this:

  .level = FINE
  .formatter = com.guidewire.bat.server.BatLoggingFormatter

But it's not using my formatter. How do I configure gwt-log to use my custom formatter?

I see the section titled "Use logging categories", but I'm not using categories. Do I still need to create the ServletContextListener and all that? Is there no way to use the logging.properties?

Thanks,
;ted

Fred Sauer

unread,
Mar 26, 2012, 2:51:21 PM3/26/12
to gwt...@googlegroups.com
Note the category of all client messages sent to the server is 'gwt-log'. which means you need to the change the default logging format for the 'gwt-log' category, as opposed to the 'com.guidewire....' category.


--
You received this message because you are subscribed to the Google Groups "gwt-log" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gwt-log/-/MKkFUdu7FyAJ.
To post to this group, send email to gwt...@googlegroups.com.
To unsubscribe from this group, send email to gwt-log+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-log?hl=en.



--
Fred Sauer
fr...@allen-sauer.com
Reply all
Reply to author
Forward
0 new messages