[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLogTarget\u003c/code\u003e class in the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common\u003c/code\u003e namespace represents the destination where log entries are sent, such as a specific Google Cloud project or organization.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eLogTarget\u003c/code\u003e class is 5.2.0, with other available versions including 5.1.0, 5.0.0, 4.4.0, and 4.3.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLogTarget\u003c/code\u003e includes properties like \u003ccode\u003eKind\u003c/code\u003e, \u003ccode\u003eOrganizationId\u003c/code\u003e, and \u003ccode\u003eProjectId\u003c/code\u003e, which are used to define the specific location for log entries.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the static methods \u003ccode\u003eForOrganization(string organizationId)\u003c/code\u003e and \u003ccode\u003eForProject(string projectId)\u003c/code\u003e to create a \u003ccode\u003eLogTarget\u003c/code\u003e instance for an organization or project respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetFullLogName(string name)\u003c/code\u003e method returns the full log name, which is built from the log's name, alongside the project or organization it belongs to, as per the Google Cloud Logging API.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Diagnostics.Common - Class LogTarget (5.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.LogTarget)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.2.0/Google.Cloud.Diagnostics.Common.LogTarget)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.1.0/Google.Cloud.Diagnostics.Common.LogTarget)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.0.0/Google.Cloud.Diagnostics.Common.LogTarget)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.4.0/Google.Cloud.Diagnostics.Common.LogTarget)\n- [4.3.1](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.3.1/Google.Cloud.Diagnostics.Common.LogTarget) \n\n public sealed class LogTarget\n\nReference documentation and code samples for the Google.Cloud.Diagnostics.Common class LogTarget.\n\nRepresents the location log entries will be sent, such as a project or organization. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LogTarget \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Diagnostics.Common](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common)\n\nAssembly\n--------\n\nGoogle.Cloud.Diagnostics.Common.dll\n\nProperties\n----------\n\n### Kind\n\n public LogTargetKind Kind { get; }\n\nThe location to log entries to.\n\n### OrganizationId\n\n public string OrganizationId { get; }\n\nThe Google Cloud Platform organization Id.\n\n### ProjectId\n\n public string ProjectId { get; }\n\nThe Google Cloud Platform project Id.\n\nMethods\n-------\n\n### ForOrganization(string)\n\n public static LogTarget ForOrganization(string organizationId)\n\nCreates a [LogTarget](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.LogTarget) instance for sending log entries to an [Organization](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.LogTargetKind#Google_Cloud_Diagnostics_Common_LogTargetKind_Organization).\n\n### ForProject(string)\n\n public static LogTarget ForProject(string projectId)\n\nCreates a [LogTarget](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.LogTarget) instance for sending log entries to a [Project](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.LogTargetKind#Google_Cloud_Diagnostics_Common_LogTargetKind_Project).\n\n### GetFullLogName(string)\n\n public string GetFullLogName(string name)\n\nGets the full log name.\nSee: \u003chttps://cloud.google.com/logging/docs/api/reference/rest/v2/LogEntry\u003e."]]