1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class WasmPlugin.Types.LogConfig : IMessage<WasmPlugin.Types.LogConfig>, IEquatable<WasmPlugin.Types.LogConfig>, IDeepCloneable<WasmPlugin.Types.LogConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Services v1 API class WasmPlugin.Types.LogConfig.

Specifies the logging options for the activity performed by this
plugin. If logging is enabled, plugin logs are exported to
Cloud Logging.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[WasmPlugin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Types)[LogConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Types.LogConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[WasmPlugin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Types)[LogConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Types.LogConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[WasmPlugin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Types)[LogConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Types.LogConfig), [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)

## 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.NetworkServices.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1)

## Assembly

Google.Cloud.NetworkServices.V1.dll

## Constructors

### LogConfig()

    public LogConfig()

### LogConfig(LogConfig)

    public LogConfig(WasmPlugin.Types.LogConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPluginhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Types.LogConfig` |

## Properties

### Enable

    public bool Enable { get; set; }

Optional. Specifies whether to enable logging for activity by this
plugin.

Defaults to `false`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### MinLogLevel

    public WasmPlugin.Types.LogConfig.Types.LogLevel MinLogLevel { get; set; }

Non-empty default. Specifies the lowest level of the plugin logs that are
exported to Cloud Logging. This setting relates to the logs generated by
using logging statements in your Wasm code.

This field is can be set only if logging is enabled for the plugin.

If the field is not provided when logging is enabled, it is set to
`INFO` by default.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPluginhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Types.LogConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Types.LogConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.WasmPlugin.Types.LogConfig.Types.LogLevel` |   |

### SampleRate

    public float SampleRate { get; set; }

Non-empty default. Configures the sampling rate of activity logs, where
`1.0` means all logged activity is reported and `0.0` means no activity
is reported. A floating point value between `0.0` and `1.0` indicates
that a percentage of log messages is stored.

The default value when logging is enabled is `1.0`. The value of the
field must be between `0` and `1` (inclusive).

This field can be specified only if logging is enabled for this plugin.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.single` |   |