Rob, That all looks fine. Should absolutely work.
Add a Window.alert('test') after the log statements to make sure the code is
executing without exceptions
Fred
On Wed, Jan 20, 2010 at 2:14 PM, Rob Tanner <[email protected]> wrote:
> Fred,
>
> Logging is still not working for me.
>
> I modified my MyApp.gwt.xml file to include the following:
>
> <inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
> <extend-property name="log_level" values="INFO,WARN,ERROR"/>
> <set-property name="log_RemoteLogger" value="ENABLED" />
> <set-property name="log_WindowLogger" value="ENABLED" />
>
> And I modified web.xml to include the following:
>
> <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>/myapp/gwt-log</url-pattern>
> </servlet-mapping>
>
> In the class that implements EntryPoint if have a couple of Log.info
> (msg) statements to log just test text to see what happens and in one
> of the classes that it instantiates, I have a Log.info(msg) that has
> similar test text just to see what happens.
>
> Hosted mode does not generate any errors and in the console in Eclipse
> I get the following:
> ============= gwt-log-2.6.2 =============Wed Jan 20 13:51:39 PST
> 2010=============
>
>
> And that's it. Nothing else on the console or logged on the server
> (using log4j). What am I missing? Any suggestions?
>
> -- Rob
>
>
> On Dec 23 2009, 4:39 pm, Fred Sauer <[email protected]> wrote:
> > If you include the log4j jar on the server classpath, then you configure
> > log4j.properties or log4j.xml to include line number information.
> >
> >
> >
> >
> >
> > On Tue, Dec 22, 2009 at 2:26 PM, tomekc <[email protected]> wrote:
> > > Hello,
> >
> > > I have standard gae/j + gwt project. On client side I use gwt-log
> > > framework which works great. On server side worked default logger from
> > > java api. Now I would like to use also gwt-log to logs events.
> > > When I compile servlet with e.g. Log.info("some info"); I get:
> >
> > > 2009-12-22 22:15:16 com.allen_sauer.gwt.log.server.ServerLogImplJDK14
> > > info
> > > INFO: info
> >
> > > I don't have information from which my class/method event was thrown.
> > > com.allen_sauer.gwt.log.server.ServerLogImplJDK14 is certainly logger
> > > class...
> >
> > > Is there a way to get really event's source ?
> >
> > > Regards,tomek.
> >
> > > --
> >
> > > 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]<gwt-log%[email protected]>
> <gwt-log%[email protected]<gwt-log%[email protected]>>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/gwt-log?hl=en.
> >
> > --
> > 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]<gwt-log%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/gwt-log?hl=en.
>
>
>
>
--
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.
