On Tue, Aug 30, 2011 at 12:01 PM, benhakunamatata <
[email protected]> wrote:
> Hello, Fred and other friends,
>
> Could you please help with the question about the class name and code
> line of gwt-log?
>
> Using Log.info("...") GwtProject.java, it will show the following
> message:
>
> ["http-apr-8080"-exec-62] 2011-08-29 15:34:35.574 INFO
>
> com.allen_sauer.gwt.log.server.ServerLogImplLog4J.log(ServerLogImplLog4J.java:
> 81) - This is a 'INFO' test message
> I wonder , it is possible to show the code line in GwtProject.java and
> the class name of "GwtProject"?
>
This should generally already work. Do make sure you have the latest gwt-log
jar installed as there have been some recent improvements.
Note also, that the GWT compiler optimizes away many method calls, which
means that method in your GwtProject may not actually exist in compiled
output.
You can try running in Development Mode or turning on emulated stack traces,
or compiling in PRETTY mode if you need more information.
Fred
> On the server side,
> I used something like with log4j:
> public static Logger log = Logger.getLogger(RpcCallServiceImpl.class);
> log.info("...");
>
> It seems work well to show the code line in RpcCallServiceImpl.
>
> However, if I used the same syntax in client side. The eclipse project
> building failed.
> The error message of project build is in the attachment.
>
> Could you please help with this? Or give any advice and hint?
>
> Appreciate it so much.
>
> You have a wonderful day.
>
> Best regards,
> Ben
>
> --
> 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.
>
>
--
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.