Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GWT and Log4J

 
ramesh sri
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i use log4j for gwt logging
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Uhr Zeit
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ramesh sri wrote:can i use log4j for gwt logging
.

log4j-gwt is a port of log4j to GWT. Just add it after the normal log4j.jar in your classpath and you are done.

The nice thing is that code will work in and out of an GWT environment without any modifications.

Oh, and you can log any object with log4j. I think the built-in GWT log API is really annoying because there you need to null check and convert to string first.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic