Module: LogstashRails::Formatter::Source
- Defined in:
- lib/logstash_rails/formatter/source.rb
Instance Attribute Summary collapse
-
#source ⇒ Object
Returns the value of attribute source.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#source ⇒ Object
Returns the value of attribute source.
5 6 7 |
# File 'lib/logstash_rails/formatter/source.rb', line 5 def source @source end |
Class Method Details
.decorate(target, options) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/logstash_rails/formatter/source.rb', line 11 def self.decorate(target, ) source = [:source] if source != false target.extend(self) target.source = get_source(source) end end |
Instance Method Details
#format(event_type, start, finish, id, payload) ⇒ Object
7 8 9 |
# File 'lib/logstash_rails/formatter/source.rb', line 7 def format(event_type, start, finish, id, payload) add_source(super) end |