# Cloud Tasks V2 API - Class Google::Cloud::Tasks::V2::StackdriverLoggingConfig (v1.6.0)

1.6.0 (latest) 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.11.0 0.10.2 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.6 Reference documentation and code samples for the Cloud Tasks V2 API class Google::Cloud::Tasks::V2::StackdriverLoggingConfig.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #sampling_ratio

    def sampling_ratio() -> ::Float

**Returns**

- (::Float) --- 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.

### #sampling_ratio=

    def sampling_ratio=(value) -> ::Float

**Parameter**

- **value** (::Float) --- 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.
**Returns**

- (::Float) --- 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.