public sealed class StackdriverLoggingConfig : IMessage<StackdriverLoggingConfig>, IEquatable<StackdriverLoggingConfig>, IDeepCloneable<StackdriverLoggingConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Tasks v2beta3 API class StackdriverLoggingConfig.
Specifies the fraction of operations to write to
Stackdriver Logging.
This field may contain any value between 0.0 and 1.0, inclusive.
0.0 is the default and means that no operations are logged.
[[["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."],[[["\u003cp\u003eThe \u003ccode\u003eStackdriverLoggingConfig\u003c/code\u003e class in the Google Cloud Tasks v2beta3 API provides configuration options for writing logs to Stackdriver Logging.\u003c/p\u003e\n"],["\u003cp\u003eThis class, which inherits from \u003ccode\u003eobject\u003c/code\u003e, implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt is available in multiple versions, with the latest being version \u003ccode\u003e3.0.0-beta07\u003c/code\u003e for the Google.Cloud.Tasks.V2Beta3 package.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers a \u003ccode\u003eSamplingRatio\u003c/code\u003e property, a double value between 0.0 and 1.0, to define the fraction of operations logged, with 0.0 indicating no logs.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors offered, one with no parameters and one with a \u003ccode\u003eStackdriverLoggingConfig\u003c/code\u003e parameter.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Tasks v2beta3 API - Class StackdriverLoggingConfig (3.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.StackdriverLoggingConfig)\n- [3.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/3.0.0-beta06/Google.Cloud.Tasks.V2Beta3.StackdriverLoggingConfig)\n- [2.0.0-beta08](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/2.0.0-beta08/Google.Cloud.Tasks.V2Beta3.StackdriverLoggingConfig) \n\n public sealed class StackdriverLoggingConfig : IMessage\u003cStackdriverLoggingConfig\u003e, IEquatable\u003cStackdriverLoggingConfig\u003e, IDeepCloneable\u003cStackdriverLoggingConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Tasks v2beta3 API class StackdriverLoggingConfig.\n\nConfiguration options for writing logs to\n[Stackdriver Logging](https://cloud.google.com/logging/docs/). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e StackdriverLoggingConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StackdriverLoggingConfig](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.StackdriverLoggingConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StackdriverLoggingConfig](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.StackdriverLoggingConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StackdriverLoggingConfig](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.StackdriverLoggingConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \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.Tasks.V2Beta3](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3)\n\nAssembly\n--------\n\nGoogle.Cloud.Tasks.V2Beta3.dll\n\nConstructors\n------------\n\n### StackdriverLoggingConfig()\n\n public StackdriverLoggingConfig()\n\n### StackdriverLoggingConfig(StackdriverLoggingConfig)\n\n public StackdriverLoggingConfig(StackdriverLoggingConfig other)\n\nProperties\n----------\n\n### SamplingRatio\n\n public double SamplingRatio { get; set; }\n\nSpecifies the fraction of operations to write to\n[Stackdriver Logging](https://cloud.google.com/logging/docs/).\nThis field may contain any value between 0.0 and 1.0, inclusive.\n0.0 is the default and means that no operations are logged."]]