Class: Google::Apis::LoggingV2::LogLine

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/logging_v2/classes.rb,
lib/google/apis/logging_v2/representations.rb,
lib/google/apis/logging_v2/representations.rb

Overview

Application log line emitted while processing a request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LogLine

Returns a new instance of LogLine.



2364
2365
2366
# File 'lib/google/apis/logging_v2/classes.rb', line 2364

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#log_messageString

App-provided log message. Corresponds to the JSON property logMessage

Returns:

  • (String)


2347
2348
2349
# File 'lib/google/apis/logging_v2/classes.rb', line 2347

def log_message
  @log_message
end

#severityString

Severity of this log entry. Corresponds to the JSON property severity

Returns:

  • (String)


2352
2353
2354
# File 'lib/google/apis/logging_v2/classes.rb', line 2352

def severity
  @severity
end

#source_locationGoogle::Apis::LoggingV2::SourceLocation

Specifies a location in a source code file. Corresponds to the JSON property sourceLocation



2357
2358
2359
# File 'lib/google/apis/logging_v2/classes.rb', line 2357

def source_location
  @source_location
end

#timeString

Approximate time when this log entry was made. Corresponds to the JSON property time

Returns:

  • (String)


2362
2363
2364
# File 'lib/google/apis/logging_v2/classes.rb', line 2362

def time
  @time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2369
2370
2371
2372
2373
2374
# File 'lib/google/apis/logging_v2/classes.rb', line 2369

def update!(**args)
  @log_message = args[:log_message] if args.key?(:log_message)
  @severity = args[:severity] if args.key?(:severity)
  @source_location = args[:source_location] if args.key?(:source_location)
  @time = args[:time] if args.key?(:time)
end