Method: Fluent::Compat::SetTagKeyMixin#configure
- Defined in:
- lib/fluent/compat/set_tag_key_mixin.rb
#configure(conf) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/fluent/compat/set_tag_key_mixin.rb', line 28 def configure(conf) @include_tag_key = false super if s = conf['include_tag_key'] include_tag_key = Fluent::Config.bool_value(s) raise Fluent::ConfigError, "Invalid boolean expression '#{s}' for include_tag_key parameter" if include_tag_key.nil? @include_tag_key = include_tag_key end @tag_key = conf['tag_key'] || 'tag' if @include_tag_key end |