开发者

output stream on appengine

while using the appengine sdk i can't view the Output of my System.out.pr开发者_StackOverflow社区intln statements how can i view them they are like envaluable debugging tool for me .


I am using java.util.logging for my debug messages, and those do show up in the Log Viewer on the admin pages.

System.out and System.err also get redirected as log messages, but one thing to note is that you have to set an appropriate log level. The default is warnings-only, I think, which may filter out your messages. System.out is INFO, System.err is WARN.

You can adjust those in the logging.properties file.

Check out the docs for more, including how to download the logs.


Have tyou tried looking in the logs ? From Google App Engine doc, it seems that System.out is redirected to logs.


Have a look to those files in your project:

<project>/src/log4j.properties
<project>/war/WEB-INF/logging.properties

Adjust logging level\redirect as your needs.
Remember that log4j will be used just if you have log4j in your classpath (or if you have any jars which bundle log4j classes)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜