Thanks guys! I wonder if you would mind suggesting ways of making gwt-log more discoverable for developers. Indeed, RemoteLogger will send log messages from the client to the server.
Fred On Thu, Sep 24, 2009 at 4:46 AM, Rutger van der Eijk <[email protected]>wrote: > Just want to agree and add to that: Fred: very good and usefull work! > Thanks a lot! > > > On Thu, Sep 24, 2009 at 1:44 PM, Sean <[email protected]> wrote: > >> >> Ah, it seems I did have it backwards. I was thinking that errors on >> the Server would be sent back to the Client and shown in the Log >> Window. But it seems to be the other way around, do I have that >> correct? >> >> So far, this is an amazing project, I wish I knew about this 3 months >> ago, would have saved me a TON of adding little debug text areas to >> pop out errors. >> >> On Sep 21, 4:22 pm, Fred Sauer <[email protected]> wrote: >> > You can see a demo of what you should see on the client here: >> http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html >> > >> > Messages sent from the client to the server (with RemoteLogger turned >> on) >> > will be logged on the server as well. However, if you are not using >> log4j, >> > the default is java.util.logging, which unfortunately does not print >> debug >> > messages by default. >> > >> > Try: >> > Log.fatal("test"); >> > >> > And see if that shows up on the server console. >> > >> > Also, you could try including log4j.jar in your server classpath. >> > >> > Fred >> > >> > >> > >> > On Mon, Sep 21, 2009 at 11:27 AM, Sean <[email protected]> wrote: >> > >> > > Since I don't know what you are talking about, I'm going to go >> > > with......no. :) >> > >> > > I've never actually used Logging in GWT before. >> > >> > > One thing I did notice is that when the server does hit Log.info >> > > (ERROR") it'll print it to the console. Just not to the main panel on >> > > the client (which, I'm not sure is actually supposed to happen or >> > > not). >> > >> > > On Sep 21, 2:21 pm, Fred Sauer <[email protected]> wrote: >> > > > Have you set the default logging level on the server? >> > > > That's either the log4j or java.util.logging setting. >> > >> > > > Fred >> > >> > > > On Mon, Sep 21, 2009 at 11:08 AM, Sean <[email protected]> wrote: >> > >> > > > > My post didn't seem to show up. Going to try again. But I'm also >> > > > > having trouble getting server side logging to work. >> > >> > > > > In my gwt.xml file I have: >> > > > > <inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" /> >> > > > > <set-property name="log_RemoteLogger" value="ENABLED" /> >> > >> > > > > In my web.xml I have: >> > > > > <servlet> >> > > > > <servlet-name>gwt-log-remote-logger-servlet</servlet-name> >> > > > > <servlet- >> > > > > >> class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet- >> > > > > class> >> > > > > </servlet> >> > >> > > > > <servlet-mapping> >> > > > > <servlet-name>gwt-log-remote-logger-servlet</servlet-name> >> > > > > <url-pattern>/gwt-log</url-pattern> >> > > > > </servlet-mapping> >> > >> > > > > and in GreetingServiceImpl I have: >> > > > > Log.info("SERVER: This is a 'INFO' test message"); >> > > > > Log.warn("SERVER: This is a 'WARN' test message"); >> > > > > Log.error("SERVER: This is a 'ERROR' test message"); >> > > > > Log.fatal("SERVER: This is a 'FATAL' test message"); >> > >> > > > > None of those show up, but the same calls on Client side work >> fine. I >> > > > > also put the logging jar in web-inf/lib as well. >> > >> > > > > On Aug 12, 1:06 pm, Fred Sauer <[email protected]> wrote: >> > > > > > Ben, >> > >> > > > > > On Wed, Aug 12, 2009 at 5:09 AM, Ben2008 <[email protected] >> > >> > > wrote: >> > >> > > > > > > Hi, >> > > > > > > i could not find answers to this questions: >> > >> > > > > > > 1. how do i enable serverside logging? >> > > > > > > If i just want to log something i get an error like >> > > > > > > 12.08.2009 12:02:31 >> com.google.apphosting.utils.jetty.JettyLogger >> > > warn >> > > > > > > WARNUNG: failed startUp >> > > > > > > java.lang.NoClassDefFoundError: >> com/allen_sauer/gwt/log/client/Log >> > >> > > > > > You simply will need to include gwt-log-x.x.x.jar in the server >> > > > > classpath. >> > > > > > Optionally include log4j if you like that style of logging. >> > >> > > > > > > Clientside logging works fine. >> > > > > > > It is just a standard project ... i did not really change much >> to >> > > the >> > > > > > > gwt project. >> > >> > > > > > > I am using GWT 1.7 and the latest gwt-log >> > >> > > > > > > 2. what is this gwt incubator log ?? >> > > > > > > It seems that those both are the same, but the incubator log >> is not >> > > > > > > uptodate? What should i prefer to use? >> > >> > > > > > The incubator logging was derived from gwt-log but has since >> forked >> > > > > > somewhat. >> > >> > > > > > Shamelessly, I'd recommend gwt-log :) >> > >> > > > > > Fred >> > >> > > > > > > Thanks >> > >> > > > > > -- >> > > > > > Fred Sauer >> > > > > > Developer Advocate >> > > > > > Google Inc. 1600 Amphitheatre Parkway >> > > > > > Mountain View, CA 94043 >> > > > > > [email protected] >> > >> > > > -- >> > > > Fred Sauer >> > > > Developer Advocate >> > > > Google Inc. 1600 Amphitheatre Parkway >> > > > Mountain View, CA 94043 >> > > > [email protected] >> > >> > -- >> > Fred Sauer >> > Developer Advocate >> > Google Inc. 1600 Amphitheatre Parkway >> > Mountain View, CA 94043 >> > [email protected] >> >> > > > > -- Fred Sauer Developer Advocate Google Inc. 1600 Amphitheatre Parkway Mountain View, CA 94043 [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
