Method: Fluent::Compat::TextFormatter.create
- Defined in:
- lib/fluent/compat/formatter.rb
.create(conf) ⇒ Object
Keep backward-compatibility
57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/fluent/compat/formatter.rb', line 57 def self.create(conf) # TODO: warn when deprecated format = conf['format'] if format.nil? raise ConfigError, "'format' parameter is required" end formatter = lookup(format) if formatter.respond_to?(:configure) formatter.configure(conf) end formatter end |