Logs herunterladen
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
App Engine verwaltet ein Log mit Meldungen, die Ihre Anwendung über das Modul
logging
aus der Python-Standardbibliothek ausgibt, sowie andere Meldungen, die im Standard-Fehlerstream ausgegeben werden.
Darüber hinaus zeichnet App Engine jede Anfrage im Log auf. Jeder Log-Schweregrad (4 für KRITISCH, 3 für FEHLER, 2 für WARNUNG, 1 für INFO, 0 für DEBUG) hat eine feste Puffergröße, die den Umfang der Loginformationen festlegt, auf die Sie zugreifen können. Normalerweise werden Loggingfunktionen eher in niedrigeren Log-Ebenen verwendet. Daher ist das Zeitfenster für Log-Ereignisse auf diesen Ebenen kleiner.
Jeder protokollierten Anfrage wird eine
Anfrage-ID zugewiesen, eine weltweit eindeutige Kennung, die auf der Startzeit der Anfrage beruht.
Sie können in den Logs Ihrer Anwendung der letzten 90 Tage auch über die Seite „Logs“ in der Google Cloud Console suchen.
Logs anfordern
Das appcfg
-Tool ist jetzt beendet.
Das Google Cloud CLI als Ersatz unterstützt nicht die Möglichkeit, Logs herunterzuladen. Sie können Ihre Logs jedoch mit den gcloud app logs
-Befehlen abrufen.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-09-04 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\u003cp\u003eApp Engine logs messages from the Python \u003ccode\u003elogging\u003c/code\u003e module and standard error stream, as well as every request.\u003c/p\u003e\n"],["\u003cp\u003eLog severity levels range from 0 (DEBUG) to 4 (CRITICAL), each having a buffer size that impacts accessible log information.\u003c/p\u003e\n"],["\u003cp\u003eEach logged request has a unique request ID, based on its start time, which can be used for reference.\u003c/p\u003e\n"],["\u003cp\u003eLogs from the last 90 days can be viewed through the Logs page in the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eWhile the \u003ccode\u003eappcfg\u003c/code\u003e tool is shut down, logs can still be viewed using the \u003ccode\u003egcloud app logs\u003c/code\u003e commands within the Google Cloud CLI.\u003c/p\u003e\n"]]],[],null,["# Downloading Logs\n\nApp Engine maintains a log of messages that your application emits using the `logging` module from the Python standard library, as well as other messages printed to the standard error stream. App Engine also records each request in the log. Each log severity level (4 for CRITICAL, 3 for ERROR, 2 for WARNING, 1 for INFO, 0 for DEBUG) has a fixed buffer size that controls the amount of log information you can access. Normally, you use logging features more at lower log levels; thus, the time window is smaller for log events at these levels. Each request logged is assigned a [request ID](/appengine/docs/legacy/standard/python/refdocs/google.appengine.api.logservice.logservice#google.appengine.api.logservice.logservice.RequestLog.request_id), a globally unique identifier based on the request's start time.\n\nTo browse your app's logs of the last 90 days, you can also use the\n[Logs page](https://console.cloud.google.com/logs) in the Google Cloud console.\n\nRequesting the logs\n-------------------\n\nThe `appcfg` tool is now [shut down](/appengine/docs/legacy/standard/python/sdk-gcloud-migration).\nThe replacement, [Google Cloud CLI](/sdk/docs), does not support the ability to\ndownload logs; however, you can view your logs using the\n[`gcloud app logs` commands](/sdk/gcloud/reference/app/logs)."]]