Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig.
Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#enable
def enable() -> ::Boolean
-
(::Boolean) — Optional. Specifies whether to enable logging for activity by this
plugin.
Defaults to
false
.
#enable=
def enable=(value) -> ::Boolean
-
value (::Boolean) — Optional. Specifies whether to enable logging for activity by this
plugin.
Defaults to
false
.
-
(::Boolean) — Optional. Specifies whether to enable logging for activity by this
plugin.
Defaults to
false
.
#min_log_level
def min_log_level() -> ::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig::LogLevel
-
(::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig::LogLevel) — 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.
#min_log_level=
def min_log_level=(value) -> ::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig::LogLevel
-
value (::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig::LogLevel) — 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.
-
(::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig::LogLevel) — 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.
#sample_rate
def sample_rate() -> ::Float
-
(::Float) — Non-empty default. Configures the sampling rate of activity logs, where
1.0
means all logged activity is reported and0.0
means no activity is reported. A floating point value between0.0
and1.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 between0
and1
(inclusive).This field can be specified only if logging is enabled for this plugin.
#sample_rate=
def sample_rate=(value) -> ::Float
-
value (::Float) — Non-empty default. Configures the sampling rate of activity logs, where
1.0
means all logged activity is reported and0.0
means no activity is reported. A floating point value between0.0
and1.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 between0
and1
(inclusive).This field can be specified only if logging is enabled for this plugin.
-
(::Float) — Non-empty default. Configures the sampling rate of activity logs, where
1.0
means all logged activity is reported and0.0
means no activity is reported. A floating point value between0.0
and1.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 between0
and1
(inclusive).This field can be specified only if logging is enabled for this plugin.