[[["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-09-04 UTC."],[],[],null,["# Interface ServiceContext (11.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [11.2.0 (latest)](/nodejs/docs/reference/logging/latest/logging/servicecontext)\n- [11.0.0](/nodejs/docs/reference/logging/11.0.0/logging/servicecontext)\n- [10.5.0](/nodejs/docs/reference/logging/10.5.0/logging/servicecontext)\n- [10.3.1](/nodejs/docs/reference/logging/10.3.1/logging/servicecontext)\n- [10.2.3](/nodejs/docs/reference/logging/10.2.3/logging/servicecontext)\n- [10.1.11](/nodejs/docs/reference/logging/10.1.11/logging/servicecontext)\n- [9.8.2](/nodejs/docs/reference/logging/9.8.2/logging/servicecontext)\n- [9.7.0](/nodejs/docs/reference/logging/9.7.0/logging/servicecontext)\n- [9.6.9](/nodejs/docs/reference/logging/9.6.9/logging/servicecontext)\n- [9.5.7](/nodejs/docs/reference/logging/9.5.7/logging/servicecontext)\n- [9.3.1](/nodejs/docs/reference/logging/9.3.1/logging/servicecontext) \nFor logged errors, one can provide a the service context. For more information see \\[this guide\\]\u003chttps://cloud.google.com/error-reporting/docs/formatting-error-messages\u003e and the \\[official documentation\\]\u003chttps://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext\u003e.\n\nPackage\n-------\n\n[@google-cloud/logging](../overview.html)\n\nProperties\n----------\n\n### service\n\n service?: string;\n\nAn identifier of the service, such as the name of the executable, job, or Google App Engine service name.\n\n### version\n\n version?: string;\n\nRepresents the version of the service."]]