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 to
INFO by default.
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 to
INFO by default.
The enum numeric value on the wire for minLogLevel.
getSampleRate()
publicabstractfloatgetSampleRate()
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.
[[["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-16 UTC."],[],[],null,["# Interface WasmPlugin.LogConfigOrBuilder (0.28.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.28.0 (latest)](/java/docs/reference/google-cloud-networkservices/latest/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.26.0](/java/docs/reference/google-cloud-networkservices/0.26.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.24.0](/java/docs/reference/google-cloud-networkservices/0.24.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.23.0](/java/docs/reference/google-cloud-networkservices/0.23.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.20.0](/java/docs/reference/google-cloud-networkservices/0.20.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.19.0](/java/docs/reference/google-cloud-networkservices/0.19.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.18.0](/java/docs/reference/google-cloud-networkservices/0.18.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.16.0](/java/docs/reference/google-cloud-networkservices/0.16.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloud-networkservices/0.15.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.14.0](/java/docs/reference/google-cloud-networkservices/0.14.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.13.0](/java/docs/reference/google-cloud-networkservices/0.13.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.12.0](/java/docs/reference/google-cloud-networkservices/0.12.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.11.0](/java/docs/reference/google-cloud-networkservices/0.11.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.10.0](/java/docs/reference/google-cloud-networkservices/0.10.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.9.0](/java/docs/reference/google-cloud-networkservices/0.9.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.8.0](/java/docs/reference/google-cloud-networkservices/0.8.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.7.0](/java/docs/reference/google-cloud-networkservices/0.7.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.5.0](/java/docs/reference/google-cloud-networkservices/0.5.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-networkservices/0.4.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.3.0](/java/docs/reference/google-cloud-networkservices/0.3.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-networkservices/0.2.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-networkservices/0.1.0/com.google.cloud.networkservices.v1.WasmPlugin.LogConfigOrBuilder) \n\n public static interface WasmPlugin.LogConfigOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getEnable()\n\n public abstract boolean getEnable()\n\nOptional. Specifies whether to enable logging for activity by this\nplugin.\n\nDefaults to `false`.\n\n`bool enable = 1 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getMinLogLevel()\n\n public abstract WasmPlugin.LogConfig.LogLevel 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.\n\nIf the field is not provided when logging is enabled, it is set to\n`INFO` by default.\n\n`\n.google.cloud.networkservices.v1.WasmPlugin.LogConfig.LogLevel min_log_level = 3 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];\n`\n\n### getMinLogLevelValue()\n\n public abstract int getMinLogLevelValue()\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.\n\nIf the field is not provided when logging is enabled, it is set to\n`INFO` by default.\n\n`\n.google.cloud.networkservices.v1.WasmPlugin.LogConfig.LogLevel min_log_level = 3 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];\n`\n\n### getSampleRate()\n\n public abstract float 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).\n\nThis field can be specified only if logging is enabled for this plugin.\n\n`float sample_rate = 2 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];`"]]