[[["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-28 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [3.12.1 (latest)](/python/docs/reference/logging/latest/handlers-app-engine)\n- [3.12.0](/python/docs/reference/logging/3.12.0/handlers-app-engine)\n- [3.11.3](/python/docs/reference/logging/3.11.3/handlers-app-engine)\n- [3.10.0](/python/docs/reference/logging/3.10.0/handlers-app-engine)\n- [3.9.0](/python/docs/reference/logging/3.9.0/handlers-app-engine)\n- [3.8.0](/python/docs/reference/logging/3.8.0/handlers-app-engine)\n- [3.7.0](/python/docs/reference/logging/3.7.0/handlers-app-engine)\n- [3.6.0](/python/docs/reference/logging/3.6.0/handlers-app-engine)\n- [3.5.0](/python/docs/reference/logging/3.5.0/handlers-app-engine)\n- [3.4.0](/python/docs/reference/logging/3.4.0/handlers-app-engine)\n- [3.3.1](/python/docs/reference/logging/3.3.1/handlers-app-engine)\n- [3.2.5](/python/docs/reference/logging/3.2.5/handlers-app-engine)\n- [3.1.2](/python/docs/reference/logging/3.1.2/handlers-app-engine)\n- [3.0.0](/python/docs/reference/logging/3.0.0/handlers-app-engine)\n- [2.7.2](/python/docs/reference/logging/2.7.2/handlers-app-engine)\n- [2.6.0](/python/docs/reference/logging/2.6.0/handlers-app-engine)\n- [2.5.0](/python/docs/reference/logging/2.5.0/handlers-app-engine)\n- [2.4.0](/python/docs/reference/logging/2.4.0/handlers-app-engine)\n- [2.3.1](/python/docs/reference/logging/2.3.1/handlers-app-engine)\n- [2.2.0](/python/docs/reference/logging/2.2.0/handlers-app-engine)\n- [2.1.1](/python/docs/reference/logging/2.1.1/handlers-app-engine)\n- [2.0.2](/python/docs/reference/logging/2.0.2/handlers-app-engine)\n- [1.15.3](/python/docs/reference/logging/1.15.3/handlers-app-engine)\n- [1.14.0](/python/docs/reference/logging/1.14.0/handlers-app-engine)\n- [1.13.0](/python/docs/reference/logging/1.13.0/handlers-app-engine)\n- [1.12.1](/python/docs/reference/logging/1.12.1/handlers-app-engine) \n\n\\[DEPRECATED\\] App Engine Handler\n=================================\n\n**Deprecated:** Deprecated since version 3.0.0: Use `CloudLoggingHandler` instead.\n\nLogging handler for App Engine Flexible\n\nSends logs to the Cloud Logging API with the appropriate resource\nand labels for App Engine logs.\n\n### *class* google.cloud.logging_v2.handlers.app_engine.AppEngineHandler(client, \\*, name='app', transport=\\\u003cclass 'google.cloud.logging_v2.handlers.transports.background_thread.BackgroundThreadTransport'\\\u003e, stream=None)\n\nBases: [`logging.StreamHandler`](https://docs.python.org/3/library/logging.handlers.html#logging.StreamHandler)\n\nA logging handler that sends App Engine-formatted logs to Stackdriver.\n\nDEPRECATED: use CloudLoggingHandler instead.\n\n- **Parameters**\n\n - **client** ([*Client*](/python/docs/reference/logging/latest/client#google.cloud.logging_v2.client.Client)) -- The authenticated\n Google Cloud Logging client for this handler to use.\n\n - **name** (*Optional* *\\[* [*str*](https://docs.python.org/3/library/stdtypes.html#str)*\\]*) -- Name for the logger.\n\n - **transport** (*Optional* *\\[* *Transport* *\\]* ) -- The transport class. It should be a subclass\n of [`Transport`](/python/docs/reference/logging/latest/transport#google.cloud.logging_v2.handlers.transports.base.Transport). If unspecified,\n [`BackgroundThreadTransport`](/python/docs/reference/logging/latest/transport#google.cloud.logging_v2.handlers.transports.background_thread.BackgroundThreadTransport) will be used.\n\n - **stream** (*Optional* *\\[* *IO* *\\]*) -- Stream to be used by the handler.\n\n#### emit(record)\n\nActually log the specified logging record.\n\nOverrides the default emit behavior of `StreamHandler`.\n\nSee \u003chttps://docs.python.org/2/library/logging.html#handler-objects\u003e\n\n- **Parameters**\n\n **record** ([*logging.LogRecord*](https://docs.python.org/3/library/logging.html#logging.LogRecord)) -- The record to be logged.\n\n#### get_gae_labels()\n\nReturn the labels for GAE app.\n\nIf the trace ID can be detected, it will be included as a label.\nCurrently, no other labels are included.\n\n- **Returns**\n\n Labels for GAE app.\n- **Return type**\n\n [dict](https://docs.python.org/3/library/stdtypes.html#dict)\n\n#### get_gae_resource()\n\nReturn the GAE resource using the environment variables.\n\n- **Returns**\n\n Monitored resource for GAE.\n- **Return type**\n\n [google.cloud.logging_v2.resource.Resource](/python/docs/reference/logging/latest/resource#google.cloud.logging_v2.resource.Resource)"]]