On the client Log.debug("something") will be logged on the client. Making
the same call on the server will log it there. In addition, if you enable
the RemoteLogger on the client, then the client log messages will also be
sent to the server so that the server will then log both client and server
log messages in one place


On Mon, Jul 12, 2010 at 8:50 PM, xia <[email protected]> wrote:

> Thanks Fred.
>
> Another question: do I need to distinguish client side and server side
> (code that runs as gwt service) logging?
>
> If I call Log.debug("somthing") in GWT service, what will happen?
>
> thanks, Xia Weizhong
>
> On Jul 13, 1:09 am, Fred Sauer <[email protected]> wrote:
> > Leave the DivLogger enabled and only use step 2 to put the div logger in
> a
> > very specific place in your application.
> >
> > Fred
> >
> >
> >
> > On Mon, Jul 12, 2010 at 8:03 AM, xia <[email protected]> wrote:
> > > Hi Fred,
> >
> > > First of all: thanks for this brilliant work.
> >
> > > I am a new comer, and by some simple playing I was able to integrate
> > > gwt-log with my project and see the logs show up in the DivLogger.
> >
> > > The problem is it also covers up the working area of my app. So my
> > > plan is to do the following as mentioned in the "getting started
> > > page":
> > >      1. disable the divlogger through xml, <set-property
> > > name="log_DivLogger" value="DISABLED" />
> > >      2. In my code, add
> > >              Widget divLogger =
> > > Log.getLogger(DivLogger.class).getWidget();
> > >              someWidgetOfYours.add(divLogger);
> >
> > > In your page, it says "OR place it at a fixed location in your
> > > application". Does this mean step 1 is not required?
> >
> > > I checked the source code, looks Log.getLogger simply throws an
> > > exception. The version I looked is 3.0.1.
> >
> > > thanks, Xia Weizhong
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "gwt-log" group.> To post to this group, send email
> [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.

Reply via email to