Module: LogStasher::CustomFields
- Defined in:
- lib/logstasher/custom_fields.rb
Defined Under Namespace
Modules: LogSubscriber
Class Method Summary collapse
Class Method Details
.add(*fields) ⇒ Object
13 14 15 |
# File 'lib/logstasher/custom_fields.rb', line 13 def self.add(*fields) custom_fields.concat(fields).uniq! end |
.clear ⇒ Object
9 10 11 |
# File 'lib/logstasher/custom_fields.rb', line 9 def self.clear Thread.current[:logstasher_custom_fields] = [] end |
.custom_fields ⇒ Object
17 18 19 |
# File 'lib/logstasher/custom_fields.rb', line 17 def self.custom_fields Thread.current[:logstasher_custom_fields] ||= [] end |
.custom_fields=(val) ⇒ Object
21 22 23 |
# File 'lib/logstasher/custom_fields.rb', line 21 def self.custom_fields=(val) Thread.current[:logstasher_custom_fields] = val end |