Class LoggingConfig (1.22.0)

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

Project level logging config to control what level of log will be generated and written to Cloud Logging.

Attributes

Name Description
name str
Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
default_log_generation_rule google.cloud.retail_v2alpha.types.LoggingConfig.LogGenerationRule
The log generation rule that applies by default to all services supporting log generation. It can be overridden by ServiceLogGenerationRule for service level control.
service_log_generation_rules MutableSequence[google.cloud.retail_v2alpha.types.LoggingConfig.ServiceLogGenerationRule]
Controls logging configurations more granularly for each supported service. This overrides the default_log_generation_rule for the services specified. For those not mentioned, they will fallback to the default log generation rule.

Classes

LogGenerationRule

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

LoggingLevel

LoggingLevel(value)

The setting to control log generation.

ServiceLogGenerationRule

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

The granular logging configurations for supported services.