[appengine-java] Re: Logging in GAE/J

2009-10-19 Thread Jason (Google)
Can you try log.info() instead? Passing strings to System.out should
automatically log at the INFO level also:

http://code.google.com/appengine/docs/java/runtime.html#Logging

- Jason

On Wed, Oct 14, 2009 at 2:31 PM, Thai Dang Vu tdan...@gmail.com wrote:

 I put my logging.properties in the WEB-INF directory. That properties file
 looks like this:

 handlers = java.util.logging.ConsoleHandler
 java.util.logging.ConsoleHandler.formatter =
 java.util.logging.SimpleFormatter
 .level = WARNING

 com.att.level = FINEST

 I use commons-logging to get the log instance:
 private final Log log = LogFactory.getLog(getClass());

 but this statement in the com.att.web.servlet.mvc.SpringMVCController.java
 doesn't print anything
 log.debug(hi hic hic);

 I absolutely miss something, but what is that?

 Thank you.


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Logging in GAE/J

2009-10-19 Thread Esteban Masoero

Have you tried using jdk14 to get the logger instance? ( 
java.util.logging.Logger.getLogger(getClass().getName()) )
If you're not forced to use commons logging, you could change to that. 
If you are forced and trying util logging works fine, at least you'll be 
getting closer to the problem.

Jason (Google) escribió:
 Can you try log.info http://log.info() instead? Passing strings to 
 System.out should automatically log at the INFO level also:

 http://code.google.com/appengine/docs/java/runtime.html#Logging

 - Jason

 On Wed, Oct 14, 2009 at 2:31 PM, Thai Dang Vu tdan...@gmail.com 
 mailto:tdan...@gmail.com wrote:

 I put my logging.properties in the WEB-INF directory. That
 properties file looks like this:

 handlers = java.util.logging.ConsoleHandler
 java.util.logging.ConsoleHandler.formatter =
 java.util.logging.SimpleFormatter
 .level = WARNING

 com.att.level = FINEST

 I use commons-logging to get the log instance:
 private final Log log = LogFactory.getLog(getClass());

 but this statement in the
 com.att.web.servlet.mvc.SpringMVCController.java doesn't print
 anything
 log.debug(hi hic hic);

 I absolutely miss something, but what is that?

 Thank you.





 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---