我有以下功能:
@app.route('/db')
def db():
_, cursor = get_db()
print ('11111111111')
logging.info('2222222222')
return jsonify(x="new")
無論出于何種原因,這些logging
專案都沒有顯示在日志資源管理器中,我只看到print
顯示default
嚴重性的陳述句。我的日志在哪里,我logging
如何查看它們?
uj5u.com熱心網友回復:
你設定水平了嗎?請記住默認設定,WARNING
因此您必須logging.basicConfig(level=logging.INFO)
在開始使用之前執行類似操作logging.info()
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/507763.html
標籤:Google Cloud Collective python-3.x 谷歌应用引擎 日志记录