Method: ElasticAPM::Error::Log#initialize

Defined in:
lib/elastic_apm/error/log.rb

#initialize(message, attrs = {}) ⇒ Log

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Log.



24
25
26
27
28
29
30
# File 'lib/elastic_apm/error/log.rb', line 24

def initialize(message, attrs = {})
  @message = message

  attrs.each do |key, val|
    send(:"#{key}=", val)
  end
end