Class: FluentExt::TextParser::JSONParser
- Inherits:
-
GenericParser
- Object
- GenericParser
- FluentExt::TextParser::JSONParser
- Defined in:
- lib/fluent/plugin/fixed_parser.rb
Instance Attribute Summary
Attributes inherited from GenericParser
Instance Method Summary collapse
Methods inherited from GenericParser
Constructor Details
This class inherits a constructor from FluentExt::TextParser::GenericParser
Instance Method Details
#call(text) ⇒ Object
93 94 95 96 97 98 99 100 101 102 |
# File 'lib/fluent/plugin/fixed_parser.rb', line 93 def call(text) record = Yajl.load(text) return parse_time(record) rescue Yajl::ParseError unless @suppress_parse_error_log @log.warn "pattern not match(json): #{text.inspect}: #{$!}" end return nil, nil end |