Python 2.7 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Python 2.7
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Python
2.7 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Python.
Downloading Logs
Stay organized with collections
Save and categorize content based on your preferences.
App 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,
a globally unique identifier based on the request's start time.
To browse your app's logs of the last 90 days, you can also use the
Logs page in the Google Cloud console.
Requesting the logs
The appcfg
tool is now shut down.
The replacement, Google Cloud CLI, does not support the ability to
download logs; however, you can view your logs using the
gcloud app logs
commands.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 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,[]]