Class: Fluent::Plugin::WendelinOutputFormatted

Inherits:
WendelinOutput
  • Object
show all
Defined in:
lib/fluent/plugin/out_wendelin_formatted.rb

Instance Method Summary collapse

Methods inherited from WendelinOutput

#shutdown, #start

Instance Method Details

#configure(conf) ⇒ Object



38
39
40
41
# File 'lib/fluent/plugin/out_wendelin_formatted.rb', line 38

def configure(conf)
       super
  @formatter = formatter_create
end

#format(tag, time, record) ⇒ Object



47
48
49
# File 'lib/fluent/plugin/out_wendelin_formatted.rb', line 47

def format(tag, time, record)
       @formatter.format(tag, time, record)
end

#formatted_to_msgpack_binary?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/fluent/plugin/out_wendelin_formatted.rb', line 43

def formatted_to_msgpack_binary?
  @formatter_configs.first[:@type] == 'msgpack'
end

#write(chunk) ⇒ Object



51
52
53
# File 'lib/fluent/plugin/out_wendelin_formatted.rb', line 51

def write(chunk)
  super
end