Reputation: 7940
we have a GWT application hosted in GAE. We use gwt-log (http:// code.google.com/p/gwt-log/) to log our client side and server side exceptions. What we need to do is to run a cron job every day at the midnight to create a report on all the exceptions (ex. listing source, exception time, count, etc). In order to do this, we need to access GAE logs promrammatically through API call or something from our server side code. Is this possible? Is the log data accessible?
If this is not possible, what is a best way to summarize errors in the logs?
Thank you so much.
Upvotes: 3
Views: 427
Reputation: 74094
Have a look to the LogService API.
It offers methods to examine an application's request logs and application logs.
Upvotes: 0
Reputation: 101149
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.
Upvotes: 1