David542
David542

Reputation: 110093

How to view logging.info from Google App Engine?

I have the following function:

@app.route('/db')
def db():
    _, cursor = get_db()
    print ('11111111111')
    logging.info('2222222222')
    return jsonify(x="new")

For whatever reason, the logging items don't show up in Logs Explorer, I just see the print statements which show up with the default severity. Where are my logging logs going and how can I view them?

Upvotes: 0

Views: 221

Answers (1)

NoCommandLine
NoCommandLine

Reputation: 6263

Did you set the level? Remember the default is WARNING so you have to do something like logging.basicConfig(level=logging.INFO) before you start using logging.info()

Upvotes: 1

Related Questions