Class: Fluent::Plugin::LogfmtParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/fluent/plugin/parser_logfmt.rb

Instance Method Summary collapse

Instance Method Details

#parse(text) {|time, record| ... } ⇒ Object

Yields:

  • (time, record)


27
28
29
30
31
# File 'lib/fluent/plugin/parser_logfmt.rb', line 27

def parse(text)
				r =	Logfmt.parse(text)  
  time, record = convert_values(parse_time(r), r)
  yield time, record
end