# Class LoggingConfig (2.11.0)

2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.25.0 1.24.0 1.23.1 1.22.0 1.21.2 1.20.1 1.19.1 1.18.0 1.17.0 1.16.3 1.15.1 1.14.1 1.13.0 1.12.0 1.11.0 1.10.2 1.9.0 1.8.1 1.7.0 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.2 0.4.2 0.3.1 0.2.0 0.1.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` | `https://docs.cloud.google.com/python/docs/reference/retail/latest/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[https://docs.cloud.google.com/python/docs/reference/retail/latest/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.