On Sun, Sep 6, 2009 at 9:08 AM, Ben2008 <[email protected]> wrote:

>
> Just throw an exception with your log msg like ...
> Log.debug("Reason", new Exception("This is the trace");
>
>  Thanks, Ben. This is of course a useful recommendation!

The original feature request has also been (partially) implemented in
Development Mode (Hosted Mode):

http://code.google.com/p/gwt-log/issues/detail?can=2&q=24&colspec=ID%20Type%20Status%20Priority%20Milestone%20Stars%20Summary&id=24#c2

Fred



> This will not only let you know the class, but also the class who used
> that function and so on .,... much more info.
>
> On Aug 21, 5:26 pm, Robert La Ferla <[email protected]> wrote:
> > Hi Fred.
> >
> > I just added issue #24 for my enhancement request.  Looking forward to
> > log4gwt!
> >
> > Thanks,
> > Robert
> >
> >
> >
> > On Mon, Aug 17, 2009 at 5:04 PM, Fred Sauer <[email protected]> wrote:
> > > Would you mind filing a feature request?
> > >http://code.google.com/p/gwt-log/issues/list
> >
> > > This is not something that's supported yet, but I have some ideas.
> >
> > > I assume you're thinking about the capability such as is provided by
> log4j
> > > via %C, %F, %L or %M in the pattern layout:
> >
> > >http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternL.
> ..
> >
> > > Thanks
> > > Fred
> >
> > > On Mon, Aug 17, 2009 at 9:55 AM, omsrobert <[email protected]>
> wrote:
> >
> > >> Is there a way to get gwt-log to display the class name?
> >
> > >> I have a lot of code like this that helps me trace where in my app,
> > >> that code is currently executing:
> >
> > >> Log.trace(getClass().getName() + " - save()");
> >
> > >> Furthermore, it would be nice if I could configure gwt-log once to
> > >> have something like Log.traceMethod() that would print the timestamp,
> > >> name of the class and the name of the method (not sure if this can be
> > >> done w/o reflection) that is currently being executed.- Hide quoted
> text -
> >
> > - Show quoted text -
> >
>


-- 
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