I've used log4j with regular servlets it seems like forever, but when
I set it up the same way as usual for a servlet  used in async
communication in GWT, logging doesn't happen.

Here's some code:
      HttpSession session = request.getSession();
      String log4jProperties = session.getServletContext().getRealPath
("/") + "WEB-INF/classes/log4j.properties";
      PropertyConfigurator.configure(log4jProperties);
      Logger log = Logger.getLogger("PasswordManager");
      log.debug("AuthenticationServlet");

And here is my log4j.properties file:
      log4j.rootCategory=INFO, R
      log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
      log4j.appender.R.File=/var/log/webapps/accountManager/
runtime.log
      log4j.appender.R.DatePattern='.'yyyy-MM-dd
      log4j.appender.R.layout=org.apache.log4j.PatternLayout
      log4j.appender.R.layout.conversionPattern=%d{HH:mm:ss dd MMM
yyyy} (%F:%L) -- %m%n

The above should result in a log entry (though a not a very
informative one), but it doesn't log a thing.  I'm assuming that there
is some other step required to make this work in GWT?  Any ideas?

Thanks,
Rob


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/google-web-toolkit?hl=en.


Reply via email to