[[["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,["# Class AppEngineHandler (3.12.1)\n\nVersion latestkeyboard_arrow_down\n\n- [3.12.1 (latest)](/python/docs/reference/logging/latest/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.12.0](/python/docs/reference/logging/3.12.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.11.3](/python/docs/reference/logging/3.11.3/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.10.0](/python/docs/reference/logging/3.10.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.9.0](/python/docs/reference/logging/3.9.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.8.0](/python/docs/reference/logging/3.8.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.7.0](/python/docs/reference/logging/3.7.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.6.0](/python/docs/reference/logging/3.6.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.5.0](/python/docs/reference/logging/3.5.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.4.0](/python/docs/reference/logging/3.4.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.3.1](/python/docs/reference/logging/3.3.1/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.2.5](/python/docs/reference/logging/3.2.5/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.1.2](/python/docs/reference/logging/3.1.2/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [3.0.0](/python/docs/reference/logging/3.0.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [2.7.2](/python/docs/reference/logging/2.7.2/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [2.6.0](/python/docs/reference/logging/2.6.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [2.5.0](/python/docs/reference/logging/2.5.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [2.4.0](/python/docs/reference/logging/2.4.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [2.3.1](/python/docs/reference/logging/2.3.1/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [2.2.0](/python/docs/reference/logging/2.2.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [2.1.1](/python/docs/reference/logging/2.1.1/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [2.0.2](/python/docs/reference/logging/2.0.2/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [1.15.3](/python/docs/reference/logging/1.15.3/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [1.14.0](/python/docs/reference/logging/1.14.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [1.13.0](/python/docs/reference/logging/1.13.0/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler)\n- [1.12.1](/python/docs/reference/logging/1.12.1/google.cloud.logging_v2.handlers.app_engine.AppEngineHandler) \n\n AppEngineHandler(client, *, name='app', transport=\u003cclass 'google.cloud.logging_v2.handlers.transports.background_thread.BackgroundThreadTransport'\u003e, stream=None)\n\nA logging handler that sends App Engine-formatted logs to Stackdriver.\n\nDEPRECATED: use CloudLoggingHandler instead.\n\nMethods\n-------\n\n### AppEngineHandler\n\n AppEngineHandler(client, *, name='app', transport=\u003cclass 'google.cloud.logging_v2.handlers.transports.background_thread.BackgroundThreadTransport'\u003e, stream=None)\n\n### emit\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### get_gae_labels\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### get_gae_resource\n\n get_gae_resource()\n\nReturn the GAE resource using the environment variables."]]