I followed your advice and put this into the client-side:
//Log.setCurrentLogLevel(Log.LOG_LEVEL_INFO);
Log.setCurrentLogLevel(Log.LOG_LEVEL_DEBUG);
Log.setUncaughtExceptionHandler();
Log.info("Starting up");
I now see the client-side logging in the console, and in a frame on
the webpage itself, which is a good thing. I was also getting this
Java GUI window to come up, which had "Google Development Mode" in the
caption. From what I've read, it is tool you use to debug your
project, when not using Eclipse.
My server-side logging statements do not initially come through,
whether it's the console window, Google Development Mode window, etc.
I added a Log.fatal, Log.error, Log.debug, and Log.info statements to
my method call on the server. I then removed the log4j JAR file from
WEB-INF\libs. I do now see the Log.fatal, and Log.error messages.
Log.info and Log.debug are not showing up. Is there a configuration
file on the server-side that I need to change? Or are there methods
on the servlet to call to set the log level?
Thanks,
Kevin
Oct 14, 12:37 am, Ray Tayek <[email protected]> wrote:
> At 09:01 PM 10/13/2010, you wrote:
>
> > ... I'm new to GWT. I'm trying to add some logging to my server, and
> >started to use gwt-log. I'm using the built-in Jetty application
> >server, through the Eclipse plugin. Using gwt-log 3.0.3, and GWT
> >2.0.4. I've also added log4j-1.2.16.jar into WEB-INF\libs.
>
> i just have gwt-log-3.0.3.jar in lib/
>
> >So far, I cannot see any logging in Eclipse from the server. I was
> >expecting to see something in the Console or Development Mode windows,
>
> i see mine on the console.
>
> >but none of my logger messages are being shown. I do see other
> >messages, presumably from GWT itself, but none of mine are coming
> >through. I'm calling Log.debug, which should be turned on my default,
> >from what I've read.
>
> >My *.gwt.xml has:
>
> > <inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
>
> mine has the same thing
>
> >I'm not sure if Jetty requires another log4j config file, or if Jetty
> >just outputs it's log data to somewhere that Eclipse is not seeing it.
>
> i have this in my on module load:
>
> Log.setCurrentLogLevel(Log.LOG_LEVEL_INFO);
> //Log.setCurrentLogLevel(Log.LOG_LEVEL_DEBUG);
> Log.setUncaughtExceptionHandler();
> Log.info("Starting up");
>
> thanks
>
> ---
> co-chairhttp://ocjug.org/
--
You received this message because you are subscribed to the Google Groups
"gwt-log" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/gwt-log?hl=en.