Just throw an exception with your log msg like ...
Log.debug("Reason", new Exception("This is the trace");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 - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
