module LogStasher::CustomFields
Public Class Methods
add(*fields)
click to toggle source
# File lib/logstasher/custom_fields.rb, line 13 def self.add(*fields) custom_fields.concat(fields).uniq! end
clear()
click to toggle source
# File lib/logstasher/custom_fields.rb, line 9 def self.clear Thread.current[:logstasher_custom_fields] = [] end
custom_fields()
click to toggle source
# File lib/logstasher/custom_fields.rb, line 17 def self.custom_fields Thread.current[:logstasher_custom_fields] ||= [] end
custom_fields=(val)
click to toggle source
# File lib/logstasher/custom_fields.rb, line 21 def self.custom_fields=(val) Thread.current[:logstasher_custom_fields] = val end