class Google::Apis::LoggingV1beta3::SourceLocation

Specifies a location in a source file.

Attributes

file[RW]

Source file name. May or may not be a fully qualified name, depending on the runtime environment. Corresponds to the JSON property `file` @return [String]

function_name[RW]

Human-readable name of the function or method being invoked, with optional context such as the class or package name, for use in contexts such as the logs viewer where file:line number is less meaningful. This may vary by language, for example: in Java: qual.if.ied.Class.method in Go: dir/package. func in Python: function … Corresponds to the JSON property `functionName` @return [String]

line[RW]

Line within the source file. Corresponds to the JSON property `line` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/logging_v1beta3/classes.rb, line 1038
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/logging_v1beta3/classes.rb, line 1043
def update!(**args)
  @file = args[:file] unless args[:file].nil?
  @line = args[:line] unless args[:line].nil?
  @function_name = args[:function_name] unless args[:function_name].nil?
end