Module: Fluent::RecordSerializer
- Included in:
- RecordSerializerFilter, RecordSerializerOutput
- Defined in:
- lib/fluent/plugin/record_serializer.rb
Instance Method Summary collapse
Instance Method Details
#serialize_record(format, record) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/fluent/plugin/record_serializer.rb', line 3 def serialize_record(format, record) if format == 'json' json_dump(record) elsif format == 'yaml' record.to_yaml end end |