Few Logger Questions

22 views
Skip to first unread message

doctra...@gmail.com

unread,
Jun 20, 2013, 9:13:30 AM6/20/13
to gwt...@googlegroups.com
I just read the Getting Started guide and found it very helpful, however I have a few questions surrounding the Loggers:
  1. The SystemLogger sends output to System.err and System.out - in the context of a client-side web app running inside a browser, where will this output eventually go? Browser logs?
  2. Does RemoteLogger depend on JUL or log4j? I have a homegrown slf4j binding that I like to use for all my Java backends, and would like to use it, but not sure if RemoteLogger will be incompatible with it?
  3. Is it possible to have RemoteLogger hit my own LoggingServiceServlet, which could then translate the log messages coming in on the HttpServletRequest into logging statements that are compatible with my custom slf4j binding? If so, what might this config look like?

Thanks in advance!

Fred Sauer

unread,
Jun 20, 2013, 1:25:33 PM6/20/13
to gwt...@googlegroups.com
On Thu, Jun 20, 2013 at 6:13 AM, <doctra...@gmail.com> wrote:
I just read the Getting Started guide and found it very helpful, however I have a few questions surrounding the Loggers:
  1. The SystemLogger sends output to System.err and System.out - in the context of a client-side web app running inside a browser, where will this output eventually go? Browser logs?
Nowhere when compiled to Javascript. This is a Java (dev mode) only logger.
 
  1. Does RemoteLogger depend on JUL or log4j? I have a homegrown slf4j binding that I like to use for all my Java backends, and would like to use it, but not sure if RemoteLogger will be incompatible with it?
There's a remote logger servlet out of the box which detected log4j if it's available at runtime. You can easily replace this servlet with your own.
 
  1. Is it possible to have RemoteLogger hit my own LoggingServiceServlet, which could then translate the log messages coming in on the HttpServletRequest into logging statements that are compatible with my custom slf4j binding? If so, what might this config look like?
Just copy the source for the builtin servlet and modify it.

 

Thanks in advance!

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



--
Fred Sauer
fre...@gmail.com

doctra...@gmail.com

unread,
Jun 20, 2013, 1:44:37 PM6/20/13
to gwt...@googlegroups.com
Awesome - thanks!
Reply all
Reply to author
Forward
0 new messages