[[["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 ContainerEngineHandler (3.12.1)\n\nVersion latestkeyboard_arrow_down\n\n- [3.12.1 (latest)](/python/docs/reference/logging/latest/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.12.0](/python/docs/reference/logging/3.12.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.11.3](/python/docs/reference/logging/3.11.3/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.10.0](/python/docs/reference/logging/3.10.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.9.0](/python/docs/reference/logging/3.9.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.8.0](/python/docs/reference/logging/3.8.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.7.0](/python/docs/reference/logging/3.7.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.6.0](/python/docs/reference/logging/3.6.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.5.0](/python/docs/reference/logging/3.5.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.4.0](/python/docs/reference/logging/3.4.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.3.1](/python/docs/reference/logging/3.3.1/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.2.5](/python/docs/reference/logging/3.2.5/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.1.2](/python/docs/reference/logging/3.1.2/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [3.0.0](/python/docs/reference/logging/3.0.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [2.7.2](/python/docs/reference/logging/2.7.2/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [2.6.0](/python/docs/reference/logging/2.6.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [2.5.0](/python/docs/reference/logging/2.5.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [2.4.0](/python/docs/reference/logging/2.4.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [2.3.1](/python/docs/reference/logging/2.3.1/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [2.2.0](/python/docs/reference/logging/2.2.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [2.1.1](/python/docs/reference/logging/2.1.1/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [2.0.2](/python/docs/reference/logging/2.0.2/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [1.15.3](/python/docs/reference/logging/1.15.3/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [1.14.0](/python/docs/reference/logging/1.14.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [1.13.0](/python/docs/reference/logging/1.13.0/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler)\n- [1.12.1](/python/docs/reference/logging/1.12.1/google.cloud.logging_v2.handlers.container_engine.ContainerEngineHandler) \n\n ContainerEngineHandler(*, name=None, stream=None)\n\nHandler to format log messages the format expected by GKE fluent.\n\nThis handler is written to format messages for the Google Container Engine\n(GKE) fluentd plugin, so that metadata such as log level are properly set.\n\nDEPRECATED: use StructuredLogHandler to write formatted logs to standard out instead.\n\nMethods\n-------\n\n### ContainerEngineHandler\n\n ContainerEngineHandler(*, name=None, stream=None)\n\n### format\n\n format(record)\n\nFormat the message into JSON expected by fluentd."]]