Need to access GAE logs programmatically?

The ereporter module Calvin links to shows how to do this in Python. What it does isn't reading logs programmatically: instead, it registers a custom log handler which captures all exception logs and stores them in the datastore. Then, a cron job rolls up exceptions that occurred in that interval and emails them to an administrator You should be able to apply the same technique in java with the logging infrastructure, without having to be able to programmatically read the logs.

The ereporter module Calvin links to shows how to do this in Python. What it does isn't reading logs programmatically: instead, it registers a custom log handler which captures all exception logs and stores them in the datastore. Then, a cron job rolls up exceptions that occurred in that interval and emails them to an administrator.

You should be able to apply the same technique in java with the logging infrastructure, without having to be able to programmatically read the logs.

Thank you so much for the reply. – Mayumi Apr 1 at 4:13 I don't think this is possible, since you need to invoke a $PYTHON_LIB/google/appengine/ext/ereporter/report_generator. Py probably the same way Java app invokes a Servlet.

– Mayumi Apr 1 at 4:46 I just did a quick research, this is not supported by Java. Reference: code.google.Com/appengine/tools_tips. Html – Mayumi Apr 1 at 5:11 @Mayumi It definitely is - check the docs for Java's logging infrastructure.

What does the tools and tips page have to do with it? – Nick Johnson Apr 13 at 8:26 But Java requires a Servlet to handle the server side request/response. In the instruction we need to invoke $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.

Py which is Python file, which requires a Python app. I don't think app engine is configured to allow Java app to invoke a . Py file.

– Mayumi Apr 1 at 5:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions