module LogStasher::CustomFields

Public Class Methods

add(*fields) click to toggle source
# File lib/logstasher/custom_fields.rb, line 15
def self.add(*fields)
  custom_fields.concat(fields).uniq!
end
clear() click to toggle source
# File lib/logstasher/custom_fields.rb, line 11
def self.clear
  Thread.current[:logstasher_custom_fields] = []
end
custom_fields() click to toggle source
# File lib/logstasher/custom_fields.rb, line 19
def self.custom_fields
  Thread.current[:logstasher_custom_fields] ||= []
end
custom_fields=(val) click to toggle source
# File lib/logstasher/custom_fields.rb, line 23
def self.custom_fields=(val)
  Thread.current[:logstasher_custom_fields] = val
end