Class LogGenerationRule (1.21.2)

LogGenerationRule(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The logging configurations for services supporting log generation.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
logging_level google.cloud.retail_v2alpha.types.LoggingConfig.LoggingLevel
The logging level. By default it is set to LOG_WARNINGS_AND_ABOVE.
info_log_sample_rate float
The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1. This field is a member of oneof_ _info_log_sample_rate.