Because I also want to include the linenumbers. I hope you are not
proposing that I type these in as parameters as well ? ;-)

David

On Nov 6, 11:22 am, Miroslav Pokorny <miroslav.poko...@gmail.com>
wrote:
> Why not just include the class.method name at the start of each and every
> message String sent to your logging method...Its a pain but it works.
>
>
>
>
>
> On Fri, Nov 6, 2009 at 7:06 PM, stuckagain <david.no...@gmail.com> wrote:
>
> > Hi,
>
> > Would it be possible to implement a Trace mechanism that (when
> > enabled) would be able to autodetermine from where it is called
> > (classname.method). In plain java I have such a thing implemented in
> > my tracing package and it really helps in keeping trace statements
> > really simple.
>
> > In the GWT client I'm using the incubator log API (I also tried out
> > gwt-log from Fred), but none of the log/trace packages that exist
> > today are able to detect from where they are called to give a better
> > output.
>
> > It looks to me that I will actually need compiler support to be able
> > to implement such a thing.
>
> > I read in this newsgroup that there is work going on to make
> > stacktraces available in the browser. Could that mechanism be reused
> > to implement what I need ? (In plain Java I get the stacktrace and
> > find the stack element just before the trace statement).
>
> > David
>
> --
> mP- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to