Show / Hide Table of Contents

Class Logging

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
Inheritance
System.Object
Logging
Implements
IMessage<Logging>
IMessage
System.IEquatable<Logging>
IDeepCloneable<Logging>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class Logging : IMessage<Logging>, IMessage, IEquatable<Logging>, IDeepCloneable<Logging>

Constructors

Logging()

Declaration
public Logging()

Logging(Logging)

Declaration
public Logging(Logging other)
Parameters
Type Name Description
Logging other

Fields

ConsumerDestinationsFieldNumber

Field number for the "consumer_destinations" field.

Declaration
public const int ConsumerDestinationsFieldNumber = 2
Field Value
Type Description
System.Int32

ProducerDestinationsFieldNumber

Field number for the "producer_destinations" field.

Declaration
public const int ProducerDestinationsFieldNumber = 1
Field Value
Type Description
System.Int32

Properties

ConsumerDestinations

Logging configurations for sending logs to the consumer project. There can be multiple consumer destinations, each one must have a different monitored resource type. A log can be used in at most one consumer destination.

Declaration
public RepeatedField<Logging.Types.LoggingDestination> ConsumerDestinations { get; }
Property Value
Type Description
RepeatedField<Logging.Types.LoggingDestination>

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Parser

Declaration
public static MessageParser<Logging> Parser { get; }
Property Value
Type Description
MessageParser<Logging>

ProducerDestinations

Logging configurations for sending logs to the producer project. There can be multiple producer destinations, each one must have a different monitored resource type. A log can be used in at most one producer destination.

Declaration
public RepeatedField<Logging.Types.LoggingDestination> ProducerDestinations { get; }
Property Value
Type Description
RepeatedField<Logging.Types.LoggingDestination>

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public Logging Clone()
Returns
Type Description
Logging
Implements
IDeepCloneable<T>.Clone()

Equals(Logging)

Declaration
public bool Equals(Logging other)
Parameters
Type Name Description
Logging other
Returns
Type Description
System.Boolean
Implements
System.IEquatable<T>.Equals(T)

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

MergeFrom(Logging)

Declaration
public void MergeFrom(Logging other)
Parameters
Type Name Description
Logging other
Implements
IMessage<T>.MergeFrom(T)

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top