Reference documentation and code samples for the Google Cloud Network Services V1 Client class LogConfig.
Specifies the logging options for the activity performed by this
plugin. If logging is enabled, plugin logs are exported to
Cloud Logging.
Generated from protobuf messagegoogle.cloud.networkservices.v1.WasmPlugin.LogConfig
Namespace
Google \ Cloud \ NetworkServices \ V1 \ WasmPlugin
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ enable
bool
Optional. Specifies whether to enable logging for activity by this plugin. Defaults tofalse.
↳ sample_rate
float
Non-empty default. Configures the sampling rate of activity logs, where1.0means all logged activity is reported and0.0means no activity is reported. A floating point value between0.0and1.0indicates that a percentage of log messages is stored. The default value when logging is enabled is1.0. The value of the field must be between0and1(inclusive). This field can be specified only if logging is enabled for this plugin.
↳ min_log_level
int
Non-empty default. Specificies 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 toINFOby default.
getEnable
Optional. Specifies whether to enable logging for activity by this
plugin.
Defaults tofalse.
Returns
Type
Description
bool
setEnable
Optional. Specifies whether to enable logging for activity by this
plugin.
Defaults tofalse.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getSampleRate
Non-empty default. Configures the sampling rate of activity logs, where1.0means all logged activity is reported and0.0means no activity
is reported. A floating point value between0.0and1.0indicates
that a percentage of log messages is stored.
The default value when logging is enabled is1.0. The value of the
field must be between0and1(inclusive).
This field can be specified only if logging is enabled for this plugin.
Returns
Type
Description
float
setSampleRate
Non-empty default. Configures the sampling rate of activity logs, where1.0means all logged activity is reported and0.0means no activity
is reported. A floating point value between0.0and1.0indicates
that a percentage of log messages is stored.
The default value when logging is enabled is1.0. The value of the
field must be between0and1(inclusive).
This field can be specified only if logging is enabled for this plugin.
Parameter
Name
Description
var
float
Returns
Type
Description
$this
getMinLogLevel
Non-empty default. Specificies 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 toINFOby default.
Returns
Type
Description
int
setMinLogLevel
Non-empty default. Specificies 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 toINFOby default.
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Network Services V1 Client - Class LogConfig (0.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.1 (latest)](/php/docs/reference/cloud-networkservices/latest/V1.WasmPlugin.LogConfig)\n- [0.6.0](/php/docs/reference/cloud-networkservices/0.6.0/V1.WasmPlugin.LogConfig)\n- [0.5.0](/php/docs/reference/cloud-networkservices/0.5.0/V1.WasmPlugin.LogConfig)\n- [0.4.0](/php/docs/reference/cloud-networkservices/0.4.0/V1.WasmPlugin.LogConfig)\n- [0.3.0](/php/docs/reference/cloud-networkservices/0.3.0/V1.WasmPlugin.LogConfig)\n- [0.2.3](/php/docs/reference/cloud-networkservices/0.2.3/V1.WasmPlugin.LogConfig)\n- [0.1.1](/php/docs/reference/cloud-networkservices/0.1.1/V1.WasmPlugin.LogConfig) \nReference documentation and code samples for the Google Cloud Network Services V1 Client class LogConfig.\n\nSpecifies the logging options for the activity performed by this\nplugin. If logging is enabled, plugin logs are exported to\nCloud Logging.\n\nGenerated from protobuf message `google.cloud.networkservices.v1.WasmPlugin.LogConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkServices \\\\ V1 \\\\ WasmPlugin\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getEnable\n\nOptional. Specifies whether to enable logging for activity by this\nplugin.\n\nDefaults to `false`.\n\n### setEnable\n\nOptional. Specifies whether to enable logging for activity by this\nplugin.\n\nDefaults to `false`.\n\n### getSampleRate\n\nNon-empty default. Configures the sampling rate of activity logs, where\n`1.0` means all logged activity is reported and `0.0` means no activity\nis reported. A floating point value between `0.0` and `1.0` indicates\nthat a percentage of log messages is stored.\n\nThe default value when logging is enabled is `1.0`. The value of the\nfield must be between `0` and `1` (inclusive).\nThis field can be specified only if logging is enabled for this plugin.\n\n### setSampleRate\n\nNon-empty default. Configures the sampling rate of activity logs, where\n`1.0` means all logged activity is reported and `0.0` means no activity\nis reported. A floating point value between `0.0` and `1.0` indicates\nthat a percentage of log messages is stored.\n\nThe default value when logging is enabled is `1.0`. The value of the\nfield must be between `0` and `1` (inclusive).\nThis field can be specified only if logging is enabled for this plugin.\n\n### getMinLogLevel\n\nNon-empty default. Specificies the lowest level of the plugin logs that\nare exported to Cloud Logging. This setting relates to the logs generated\nby using logging statements in your Wasm code.\n\nThis field is can be set only if logging is enabled for the plugin.\nIf the field is not provided when logging is enabled, it is set to\n`INFO` by default.\n\n### setMinLogLevel\n\nNon-empty default. Specificies the lowest level of the plugin logs that\nare exported to Cloud Logging. This setting relates to the logs generated\nby using logging statements in your Wasm code.\n\nThis field is can be set only if logging is enabled for the plugin.\nIf the field is not provided when logging is enabled, it is set to\n`INFO` by default."]]