Class: Philotic::Logging::Message

Inherits:
Message
  • Object
show all
Defined in:
lib/philotic/logging/message.rb

Constant Summary

Constants inherited from Message

Message::NotInstantiableError

Instance Attribute Summary

Attributes inherited from Message

#connection, #delivery_info, #publish_error, #published

Instance Method Summary collapse

Methods inherited from Message

attr_payload, attr_payload_accessors, attr_routable, attr_routable_accessors, #attributes, #delivery_tag, #headers, inherited, #metadata, #metadata=, #payload, #publish, publish, #published?

Constructor Details

#initialize(severity, message = nil, progname = nil) ⇒ Message

Returns a new instance of Message.



9
10
11
12
13
14
15
# File 'lib/philotic/logging/message.rb', line 9

def initialize(severity, message = nil, progname = nil)
  super({})
  self.severity = severity
  self.message  = message
  self.progname = progname

end