Class LogTarget (5.0.0)

public sealed class LogTarget

Represents the location log entries will be sent, such as a project or organization.

Inheritance

Object > LogTarget

Namespace

Google.Cloud.Diagnostics.Common

Assembly

Google.Cloud.Diagnostics.Common.dll

Properties

Kind

public LogTargetKind Kind { get; }

The location to log entries to.

Property Value
TypeDescription
LogTargetKind

OrganizationId

public string OrganizationId { get; }

The Google Cloud Platform organization Id.

Property Value
TypeDescription
String

ProjectId

public string ProjectId { get; }

The Google Cloud Platform project Id.

Property Value
TypeDescription
String

Methods

ForOrganization(String)

public static LogTarget ForOrganization(string organizationId)

Creates a LogTarget instance for sending log entries to an Organization.

Parameter
NameDescription
organizationIdString
Returns
TypeDescription
LogTarget

ForProject(String)

public static LogTarget ForProject(string projectId)

Creates a LogTarget instance for sending log entries to a Project.

Parameter
NameDescription
projectIdString
Returns
TypeDescription
LogTarget

GetFullLogName(String)

public string GetFullLogName(string name)
Parameter
NameDescription
nameString

The name of the log which will be used with the project or organization to create a full log name.

Returns
TypeDescription
String