Show / Hide Table of Contents

Class ContextExceptionLogger

Functions to create IContextExceptionLoggers.

Inheritance
System.Object
ContextExceptionLogger
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Diagnostics.Common
Assembly: Google.Cloud.Diagnostics.Common.dll
Syntax
public static class ContextExceptionLogger

Methods

Create(String, String, String, ErrorReportingOptions)

Creates an IContextExceptionLogger.

Declaration
public static IContextExceptionLogger Create(string projectId, string serviceName, string version, ErrorReportingOptions options)
Parameters
Type Name Description
System.String projectId

The Google Cloud Platform project ID. If unspecified and running on GAE or GCE the project ID will be detected from the platform.

System.String serviceName

An identifier of the service, such as the name of the executable or job. May be null.

System.String version

Represents the source code version that the developer provided. May be null.

ErrorReportingOptions options

The error reporting options. Can be null, if null default options will be used.

Returns
Type Description
IContextExceptionLogger

An IContextExceptionLogger for the given options.

Back to top