App Engine Logging Data v1 API - Class SourceLocation (1.0.0)

public sealed class SourceLocation : IMessage<SourceLocation>, IEquatable<SourceLocation>, IDeepCloneable<SourceLocation>, IBufferMessage, IMessage

Reference documentation and code samples for the App Engine Logging Data v1 API class SourceLocation.

Specifies a location in a source code file.

Inheritance

Object > SourceLocation

Namespace

Google.Cloud.AppEngine.Logging.V1

Assembly

Google.Cloud.AppEngine.Logging.V1.dll

Constructors

SourceLocation()

public SourceLocation()

SourceLocation(SourceLocation)

public SourceLocation(SourceLocation other)
Parameter
NameDescription
otherSourceLocation

Properties

File

public string File { get; set; }

Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.

Property Value
TypeDescription
String

FunctionName

public string FunctionName { get; set; }

Human-readable name of the function or method being invoked, with optional context such as the class or package name. This information is used in contexts such as the logs viewer, where a file and line number are less meaningful. The format can vary by language. For example: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python).

Property Value
TypeDescription
String

Line

public long Line { get; set; }

Line within the source file.

Property Value
TypeDescription
Int64