views:

46

answers:

2

I am using eclipse and java sdk of app-engine. I found the link for same question

here

and on stackoverflow

here.

But both are for python.

Is there a way to do it in eclipse?

+2  A: 

Try using the java.util.logging.Logger class. See the docs for examples and more information.

David Underhill
It does not print on console.
Manjoor
Strange, what level did you try to log at? INFO level and higher should appear. Writing to standard out is supposed to be logged by GAE to the logs at the INFO level in the Java runtime.
David Underhill
if you configure it properly, you can get the Logger to output to the console.
Peter Recore
Not sure how this will look, but here is what my logging.properties looks like `handlers = java.util.logging.ConsoleHandler``java.util.logging.ConsoleHandler.level = ALL`
Peter Recore
+3  A: 

Well java.lang.System is whitelisted, so won't java.lang.System.out.println(...) work?

Stephen C
Yes its working...
Manjoor
+1: Yes, according to the docs writing to stdout will be captured and logged at the INFO level. Likewise, writing to stderr will be logged at the WARN level.
David Underhill