下載記錄
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
App Engine 會使用 Python 標準程式庫的
logging
模組來保留應用程式發出的訊息記錄,以及輸出至標準錯誤訊息串的其他訊息。App Engine 也會在記錄中記錄每個要求。每種記錄嚴重性等級 (4 代表 CRITICAL、3 代表 ERROR、2 代表 WARNING、1 代表 INFO、0 代表 DEBUG) 都有固定的緩衝區空間,以控制您可以存取的記錄資訊量。一般來說,使用記錄功能時大多在較低的記錄層級使用;因此,這些層級的記錄事件時間範圍較小。每個記錄的要求都有系統指派的
要求 ID,這是根據要求開始時間編號的全域不重複 ID。
如要瀏覽應用程式過去 90 天的記錄,您也可以使用 Google Cloud 主控台的「Logs」頁面。
要求記錄檔
appcfg
工具現已關閉。做為替代工具的 Google Cloud CLI 不支援下載記錄檔的功能。不過您可以使用 gcloud app logs
指令來查看記錄檔。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-16 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-06-16 (世界標準時間)。"],[[["App Engine logs messages from the Python `logging` module and standard error stream, as well as every request."],["Log severity levels range from 0 (DEBUG) to 4 (CRITICAL), each having a buffer size that impacts accessible log information."],["Each logged request has a unique request ID, based on its start time, which can be used for reference."],["Logs from the last 90 days can be viewed through the Logs page in the Google Cloud console."],["While the `appcfg` tool is shut down, logs can still be viewed using the `gcloud app logs` commands within the Google Cloud CLI."]]],[]]