Pages

Friday, December 20, 2013

Retrieving logs from your deployed Google App Engine Java application

If you need to see your application logs from your deployed Google App Engine (GAE) Java application, you can use the GAE appcfg.sh tool to do so. Issue the following command from your GAE app directory:

appcfg.sh --num_days=0 --severity=0 request_logs ./web ./logs/gae.log

where:

--num_days=0 will retrieve all of the logs available,
--severity=0 will retrieve DEBUG and above log levels,
./web is where the ./WEB-INF/appengine-web.xml descriptor file can be found, and
./logs/gae.log is the local log file to write records to.

There are other options available for this command. Execute appcfg.sh help request_logs to see more information on the options available for request logs command. This will dump all of your logs and they will not be truncated like they are in the Logs view of the GAE administration application.

8 comments:

  1. Thank you for the information, i found the information very useful. If anyone looking for Java training in Bangalore i suggest Apponix Technologies, they provide best Java training. For more information visit : https://www.apponix.com/Java-Institute/Java-Training-Institute-in-Bangalore.html

    ReplyDelete
  2. I’m glad to read it on google keep up the great work.
    For Astrology Solution
    Vashikaran Astrologer in JP Nagar

    ReplyDelete
  3. Its very best post thanks for posting..
    Visit Best Astrologer in Peddapalli

    ReplyDelete
  4. Awesome blog post,Thanks for sharing this
    visit here
    Sofa Refurbishing in Doddanekundi

    ReplyDelete