3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.5.0 2.4.0 2.3.0 2.2.0

    public sealed class StackdriverLoggingConfig : IMessage<StackdriverLoggingConfig>, IEquatable<StackdriverLoggingConfig>, IDeepCloneable<StackdriverLoggingConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Tasks v2 API class StackdriverLoggingConfig.

Configuration options for writing logs to
[Stackdriver Logging](https://cloud.google.com/logging/docs/).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> StackdriverLoggingConfig

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[StackdriverLoggingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2/latest/Google.Cloud.Tasks.V2.StackdriverLoggingConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StackdriverLoggingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2/latest/Google.Cloud.Tasks.V2.StackdriverLoggingConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[StackdriverLoggingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2/latest/Google.Cloud.Tasks.V2.StackdriverLoggingConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Tasks.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2/latest/Google.Cloud.Tasks.V2.md.txt)

## Assembly

Google.Cloud.Tasks.V2.dll

## Constructors

### StackdriverLoggingConfig()

    public StackdriverLoggingConfig()

### StackdriverLoggingConfig(StackdriverLoggingConfig)

    public StackdriverLoggingConfig(StackdriverLoggingConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `StackdriverLoggingConfig` |

## Properties

### SamplingRatio

    public double SamplingRatio { get; set; }

Specifies the fraction of operations to write to
[Stackdriver Logging](https://cloud.google.com/logging/docs/).
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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `double` |   |