Class Logging (2.11.0)

Stay organized with collections Save and categorize content based on your preferences.
public final class Logging extends GeneratedMessageV3 implements LoggingOrBuilder

Logging configuration of the service. The following example shows how to configure logs to be sent to the producer and consumer projects. In the example, the activity_history log is sent to both the producer and consumer projects, whereas the purchase_history log is only sent to the producer project. monitored_resources:

  • type: library.googleapis.com/branch labels:
    • key: /city description: The city where the library branch is located in.
    • key: /name description: The name of the branch. logs:
  • name: activity_history labels:
    • key: /customer_id
  • name: purchase_history logging: producer_destinations:
    • monitored_resource: library.googleapis.com/branch logs:
      • activity_history
      • purchase_history consumer_destinations:
    • monitored_resource: library.googleapis.com/branch logs:
      • activity_history

Protobuf type google.api.Logging

Implements

LoggingOrBuilder

Static Fields

CONSUMER_DESTINATIONS_FIELD_NUMBER

public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

PRODUCER_DESTINATIONS_FIELD_NUMBER

public static final int PRODUCER_DESTINATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Logging getDefaultInstance()
Returns
TypeDescription
Logging

getDescriptor()