Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 788031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:17:51+00:00 2026-05-14T21:17:51+00:00

GoogleAppEngineLauncher can display the local log file of my app while it is running

  • 0

GoogleAppEngineLauncher can display the local log file of my app while it is running on my Mac during development. However, I can’t change the font size there so I would like to use the tail command to watch the log file myself.

It’s a shame but I can’t find the log files. They are not under /var/log/, ~/Library/Logs or /Library/Logs. Do you know where they are?

(Maybe there are no physical files, just the stdout of the python development environment and so the log is only available in the launcher application.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:17:51+00:00Added an answer on May 14, 2026 at 9:17 pm

    As you surmise, and can confirm by studying the source file /usr/local/google_appengine/google/appengine/tools/dev_appserver.py, the logs are not being written to disk (a cStringIO.StringIO instance is used to keep them in memory, as the rest of the code is oriented to writing them “to a file-like object”).

    What I would recommend is writing your own app server script, which imports dev_appserver, subclasses dev_appserver.ApplicationLoggingHandler, and overrides just one method:

    from google.appengine.tools import dev_appserver
    
    class MyHandler(dev_appserver.ApplicationLoggingHandler):
    
        def __init__(self, *a, **k):
            dev_appserver.ApplicationLoggingHandler.__init__(self, *a, **k)
            self.thefile = open('/tmp/mylog.txt', 'w')
    
        def emit(self, record):
            dev_appserver.ApplicationLoggingHandler(self, record)
            self.thefile.write(str(record) + '\n')
            self.thefile.flush()
    

    You also need to ensure this class is used instead of the standard one, e.g. by subclassing the dispatcher or ensuring you use its dependency-injection capability. (dev_appserver_main.py lets you control this better, I think).

    I think this customization approach is far more cumbersome than it should be (it’s perfectly normal to want the logs written to file, after all — either to display them differently, as you desire, or to process them later with some auxiliary script), and so I’d also recommend putting a feature request on app engine’s tracker: dev_appserver.py should accept one more flag, which, if specified, gives the path on which to write logs to disk.

    And, to be honest, if I needed this feature right now, myself, I’d do it the dirty way: editing that .py file (and its related _main.py) to add said flag and its use. That should be a dozen lines in all, much easier than the “canonical” way I just outlined. Of course, it is dirty because every time there’s a new SDK you’ll have to apply the patch again, and again, and again… which is why one should also propose the patch on GAE’s tracker, as part of the feature request I suggested, hoping it gets accepted soon!-)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I configure the Google App Engine SDK to run the local development
I'm going through the GAE webapp2 tutorial (runtime 2.7) using GoogleAppEngineLauncher on my Mac,
App engine (python 2.7, Mac OS X, latest version as of today) deployment seems
We made a simple application and using GoogleAppEngineLauncher (GAEL) ran that locally. Then we
I'm trying use Google APIs Client Library for Python to rename drive file, here
I'm trying to upload some records to my local data store using appcfg.py Only
I tried launching my Google App Engine app on localhost, and got a Django
I have problem with using template in Google App Engine by Python. the thing
I'm having a weird error with some Google App Engine code I'm writing. My
I have been working on the app engine for some time, and this problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.