Class: Fluent::MongoOutputTagCollection

Inherits:
MongoOutput
  • Object
show all
Defined in:
lib/fluent/plugin/out_mongo_tag_collection.rb

Instance Attribute Summary

Attributes inherited from MongoOutput

#collection_options, #connection_options

Instance Method Summary collapse

Methods inherited from MongoOutput

#emit, #format, format_nocache, #initialize, #shutdown, #start, #write

Methods included from MongoUtil

#authenticate, included

Constructor Details

This class inherits a constructor from Fluent::MongoOutput

Instance Method Details

#configure(conf) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/fluent/plugin/out_mongo_tag_collection.rb', line 9

def configure(conf)
  super

  @tag_mapped = true
  if remove_prefix_collection = conf['remove_prefix_collection']
    @remove_tag_prefix = Regexp.new('^' + Regexp.escape(remove_prefix_collection))
  end

  log.warn "'mongo_tag_collection' deprecated. Please use 'mongo' type with 'tag_mapped' parameter"
end